Package com.tangosol.net
Class ConfigurableQuorumPolicy.ProxyQuorumPolicy
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.ConfigurableQuorumPolicy
com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy
com.tangosol.net.ConfigurableQuorumPolicy.ProxyQuorumPolicy
- All Implemented Interfaces:
ActionPolicy
- Enclosing class:
ConfigurableQuorumPolicy
public static class ConfigurableQuorumPolicy.ProxyQuorumPolicy
extends ConfigurableQuorumPolicy.MembershipQuorumPolicy
ProxyQuorumPolicy defines a configurable quorum policy that is applicable
to a proxy service.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy
ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumListener, ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule
Nested classes/interfaces inherited from class com.tangosol.net.ConfigurableQuorumPolicy
ConfigurableQuorumPolicy.ClusterQuorumPolicy, ConfigurableQuorumPolicy.MembershipQuorumPolicy, ConfigurableQuorumPolicy.PartitionedCacheQuorumPolicy, ConfigurableQuorumPolicy.ProxyQuorumPolicy
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Bitmask used to encode a client connection action.Fields inherited from class com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy
m_aRules, m_ruleCurrent, m_service, m_setLeaving
-
Constructor Summary
ModifierConstructorDescriptionprotected
Construct a ProxyQuorumPolicy with the specified rule. -
Method Summary
Modifier and TypeMethodDescriptionReturn a String that describes the current Quorum state.boolean
Evaluate if the specified action is currently allowed by this policy.Methods inherited from class com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy
configure, getCurrentRule, getLeavingMembers, getPolicyPopulation, getQuorumRules, getRule, getService, init, instantiateMemberListener, setCurrentRule, setQuorumRules, setService, toString, updateCurrentRule
Methods inherited from class com.tangosol.net.ConfigurableQuorumPolicy
instantiateClusterPolicy, instantiatePartitionedCachePolicy, instantiateProxyPolicy
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, 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
-
Field Details
-
MASK_CONNECT
public static final int MASK_CONNECTBitmask used to encode a client connection action.- See Also:
-
-
Constructor Details
-
ProxyQuorumPolicy
Construct a ProxyQuorumPolicy with the specified rule.- Parameters:
aRule
- the quorum rule
-
-
Method Details
-
getStatusDescription
Return a String that describes the current Quorum state.- Specified by:
getStatusDescription
in classConfigurableQuorumPolicy
- Returns:
- a String describing the allowed actions in the current state
-
isAllowed
Evaluate if the specified action is currently allowed by this policy.Note: for forward compatibility, implementations should generally return true for actions that are not recognized.
- Parameters:
service
- the service that is performing the actionaction
- the action that is being performed- Returns:
- true iff the specified action is currently allowed by this policy
-