Package org.openspaces.core.multicluster.internal
MultiClusterRouter is the router: every space
operation on a DefaultMultiClusterGigaSpace arrives there as a
lambda that applies it to one cluster, together with the
OperationKind that says what it does, and is
dispatched to one cluster or fanned out across several.
ClusterRegistry holds the topology,
MultiClusterControlSupport answers the
multi-cluster API's own methods, and the routing and health sub-packages hold the
read selectors, write executors, health tracking and failover policies.
The proxy is a class rather than a JDK dynamic proxy, so applications can construct one directly and
every operation is resolved by javac instead of by name at runtime. GigaSpace declares 189
methods, so DefaultMultiClusterGigaSpace is long - but an abstract method added to
GigaSpace then breaks the build rather than reaching a handler that has never heard of it. A
default method would still be inherited silently, which
DefaultMultiClusterGigaSpaceCompletenessTest catches, and
OperationClassifierCompletenessTest still enforces that every method has a routing decision.
-
ClassDescriptionThe proxy's topology: which clusters are registered, which one is active, and in what order they take over.One registered cluster.An immutable view of the topology.Implements the control half of
MultiClusterGigaSpace- everything that configures the proxy rather than touching a space.Registers a proxy'sMultiClusterMXBeanwith the platform MBean server, and unregisters it on close.The router.The validated result of aMultiClusterGigaSpaceConfigurer: a populated topology, the routing configuration, and the stats sink they share.The recording side ofMultiClusterStats.Maps aMethodto theOperationKindthat decides how it is routed.What to do with a method whose return value is a live handle onto a single cluster.What aGigaSpacemethod does, reduced to the handful of categories that determine how the proxy routes it.