Record Class MultiClusterSetup
java.lang.Object
java.lang.Record
org.openspaces.core.multicluster.internal.MultiClusterSetup
- Record Components:
registry- the topology, with the active cluster and priority order already appliedconfig- the validated routing configurationstats- the counters sink, pre-seeded with every registered clustername- the proxy's name, used for JMX identity and log linesjmxEnabled- whether to expose the proxy over JMX
public record MultiClusterSetup(ClusterRegistry registry, MultiClusterConfig config, MultiClusterStatsRecorder stats, String name, boolean jmxEnabled)
extends Record
The validated result of a
MultiClusterGigaSpaceConfigurer: a populated topology, the routing
configuration, and the stats sink they share. Not API.
It carries no proxy ownership. Cluster proxies are always the application's - either handed in
directly, or built by the configurer from a SpaceConfigurer the application constructed and
still holds. Closing the multi-cluster proxy therefore releases only what the proxy itself created:
the write executors and the deferred-mutation queue.
-
Constructor Summary
ConstructorsConstructorDescriptionMultiClusterSetup(ClusterRegistry registry, MultiClusterConfig config, MultiClusterStatsRecorder stats) Convenience for callers that do not care about the name or JMX.MultiClusterSetup(ClusterRegistry registry, MultiClusterConfig config, MultiClusterStatsRecorder stats, String name, boolean jmxEnabled) Creates an instance of aMultiClusterSetuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thejmxEnabledrecord component.name()Returns the value of thenamerecord component.registry()Returns the value of theregistryrecord component.stats()Returns the value of thestatsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MultiClusterSetup
public MultiClusterSetup(ClusterRegistry registry, MultiClusterConfig config, MultiClusterStatsRecorder stats, String name, boolean jmxEnabled) Creates an instance of aMultiClusterSetuprecord class.- Parameters:
registry- the value for theregistryrecord componentconfig- the value for theconfigrecord componentstats- the value for thestatsrecord componentname- the value for thenamerecord componentjmxEnabled- the value for thejmxEnabledrecord component
-
MultiClusterSetup
public MultiClusterSetup(ClusterRegistry registry, MultiClusterConfig config, MultiClusterStatsRecorder stats) Convenience for callers that do not care about the name or JMX.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
registry
-
config
-
stats
-
name
-
jmxEnabled
public boolean jmxEnabled()Returns the value of thejmxEnabledrecord component.- Returns:
- the value of the
jmxEnabledrecord component
-