Package com.tangosol.net
Class ConfigurableQuorumPolicy
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.net.ConfigurableQuorumPolicy
-
- All Implemented Interfaces:
ActionPolicy
- Direct Known Subclasses:
ConfigurableQuorumPolicy.ClusterQuorumPolicy,ConfigurableQuorumPolicy.MembershipQuorumPolicy
public abstract class ConfigurableQuorumPolicy extends Base implements ActionPolicy
ConfigurableQuorumPolicy provides a Quorum-basedActionPolicyfor services based on the cluster-configuration.- Since:
- Coherence 3.6
- Author:
- rhl 2009.05.07
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigurableQuorumPolicy.ClusterQuorumPolicyClusterQuorumPolicy defines an action policy that is applicable to the cluster.static classConfigurableQuorumPolicy.MembershipQuorumPolicyMembershipQuorumPolicy is a quorum policy that is stateless and based solely on service membership sizes.static classConfigurableQuorumPolicy.PartitionedCacheQuorumPolicyPartitionedCacheQuorumPolicy defines a configurable quorum policy that is applicable to a DistributedCacheService.static classConfigurableQuorumPolicy.ProxyQuorumPolicyProxyQuorumPolicy defines a configurable quorum policy that is applicable to a proxy service.-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConfigurableQuorumPolicy()Create a ConfigurableQuorumPolicy.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetStatusDescription()Return a String that describes the current Quorum state.static ConfigurableQuorumPolicy.ClusterQuorumPolicyinstantiateClusterPolicy(Map<String,Integer> mapQuorum)Instantiate an action policy for the a cluster service.static ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicyinstantiatePartitionedCachePolicy(ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule[] aRule, AddressProvider provider)Instantiate an action policy for a PartitionedCache service.static ConfigurableQuorumPolicy.ProxyQuorumPolicyinstantiateProxyPolicy(ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule[] aRule)Instantiate an action policy for the a proxy service.-
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, newHashMap, newHashMap, newHashSet, newHashSet, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.net.ActionPolicy
init, isAllowed, toString
-
-
-
-
Method Detail
-
getStatusDescription
public abstract String getStatusDescription()
Return a String that describes the current Quorum state.- Returns:
- a String describing the allowed actions in the current state
-
instantiatePartitionedCachePolicy
public static ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy instantiatePartitionedCachePolicy(ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule[] aRule, AddressProvider provider)
Instantiate an action policy for a PartitionedCache service.- Parameters:
aRule- the quorum rule to be used for this policyprovider- the address-provider for recovery addresses- Returns:
- an action policy for a PartitionedCache service
-
instantiateProxyPolicy
public static ConfigurableQuorumPolicy.ProxyQuorumPolicy instantiateProxyPolicy(ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule[] aRule)
Instantiate an action policy for the a proxy service.- Parameters:
aRule- the quorum rule to be used for this policy- Returns:
- an action policy for a Proxy service
-
instantiateClusterPolicy
public static ConfigurableQuorumPolicy.ClusterQuorumPolicy instantiateClusterPolicy(Map<String,Integer> mapQuorum)
Instantiate an action policy for the a cluster service.- Parameters:
mapQuorum- the map of quorum count keyed by member role.- Returns:
- an action policy for the cluster
-
-