Uses of Record Class
org.openspaces.core.multicluster.MultiClusterConfig
Packages that use MultiClusterConfig
Package
Description
Multi-cluster GigaSpace proxy (PIC-6085).
Implementation of the multi-cluster proxy.
-
Uses of MultiClusterConfig in org.openspaces.core.multicluster
Methods in org.openspaces.core.multicluster that return MultiClusterConfigModifier and TypeMethodDescriptionMultiClusterGigaSpaceConfigurer.config()The configuration as it stands, already validated byMultiClusterConfig.static MultiClusterConfigMultiClusterProperties.configFrom(Map<String, String> properties) Reads the routing configuration only - no topology.static MultiClusterConfigMultiClusterProperties.configFrom(Properties properties) Reads the routing configuration only - no topology.static MultiClusterConfigMultiClusterConfig.defaults()Conservative defaults: single active cluster, no fan-out, automatic failover.MultiClusterConfig.withAsyncQueueCapacity(int capacity) MultiClusterConfig.withFailoverPolicy(MultiClusterGigaSpace.FailoverPolicy policy) MultiClusterConfig.withFailureThreshold(int threshold) MultiClusterConfig.withFailureWindow(Duration window) MultiClusterConfig.withReadMode(MultiClusterGigaSpace.ReadMode mode) MultiClusterConfig.withWriteMode(MultiClusterGigaSpace.WriteMode mode) Methods in org.openspaces.core.multicluster with parameters of type MultiClusterConfigModifier and TypeMethodDescriptionMultiClusterGigaSpaceConfigurer.config(MultiClusterConfig config) Replaces the whole configuration at once - handy when it comes from a properties file.protected static MultiClusterSetupDefaultMultiClusterGigaSpace.setupFor(String name, MultiClusterConfig config, Map<String, ? extends GigaSpace> clusters, boolean jmx) Assembles a setup from a name, a configuration and clusters registered in iteration order, for a subclass that offers the same convenience constructors as this class.Constructors in org.openspaces.core.multicluster with parameters of type MultiClusterConfigModifierConstructorDescriptionDefaultMultiClusterGigaSpace(String name, MultiClusterConfig config) A named proxy with no clusters yet; register them withDefaultMultiClusterGigaSpace.registerCluster(String, GigaSpace).DefaultMultiClusterGigaSpace(String name, MultiClusterConfig config, Map<String, ? extends GigaSpace> clusters) A proxy over the given clusters, registered in iteration order - so pass aLinkedHashMapwhen the default failover order matters, sinceMap.of()does not preserve order.DefaultMultiClusterGigaSpace(String name, MultiClusterConfig config, Map<String, ? extends GigaSpace> clusters, boolean jmx) As above, and optionally exposed over JMX asorg.openspaces.core.multicluster:type=MultiClusterGigaSpace,name=NAME- give each proxy in a JVM a distinct name if you turn it on. -
Uses of MultiClusterConfig in org.openspaces.core.multicluster.internal
Methods in org.openspaces.core.multicluster.internal that return MultiClusterConfigModifier and TypeMethodDescriptionMultiClusterSetup.config()Returns the value of theconfigrecord component.MultiClusterControlSupport.currentConfig()The current configuration; routing code reads this once per operation.Constructors in org.openspaces.core.multicluster.internal with parameters of type MultiClusterConfigModifierConstructorDescriptionMultiClusterControlSupport(ClusterRegistry registry, MultiClusterConfig config, MultiClusterStatsRecorder stats) MultiClusterSetup(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. -
Uses of MultiClusterConfig in org.openspaces.core.multicluster.internal.health
Methods in org.openspaces.core.multicluster.internal.health with parameters of type MultiClusterConfigModifier and TypeMethodDescriptionUnreachableClusterPolicy.decide(MultiClusterConfig config, UnreachableClusterPolicy.Detector detector, boolean isActive) Decides how to handle a cluster that could not be reached.Constructor parameters in org.openspaces.core.multicluster.internal.health with type arguments of type MultiClusterConfigModifierConstructorDescriptionFailoverManager(ClusterRegistry registry, Supplier<MultiClusterConfig> config, HealthMonitor health) FailoverManager(ClusterRegistry registry, Supplier<MultiClusterConfig> config, HealthMonitor health, RetryPolicy retryPolicy) HealthMonitor(ClusterRegistry registry, Supplier<MultiClusterConfig> config) -
Uses of MultiClusterConfig in org.openspaces.core.multicluster.internal.routing
Methods in org.openspaces.core.multicluster.internal.routing that return MultiClusterConfigModifier and TypeMethodDescriptionWriteExecutor.Mutation.config()Returns the value of theconfigrecord component.Constructors in org.openspaces.core.multicluster.internal.routing with parameters of type MultiClusterConfigModifierConstructorDescriptionMutation(OperationKind kind, String operationName, ClusterRegistry.Cluster primary, List<ClusterRegistry.Cluster> targets, WriteExecutor.ClusterInvoker invoker, MultiClusterConfig config) Creates an instance of aMutationrecord class.