Package com.tangosol.net.partition
Class SimpleAssignmentStrategy.AnalysisContext.SafetyFilter
java.lang.Object
com.tangosol.net.partition.SimpleAssignmentStrategy.AnalysisContext.SafetyFilter
- All Implemented Interfaces:
Filter
,Serializable
- Enclosing class:
SimpleAssignmentStrategy.AnalysisContext
SafetyFilter is a Filter implementation used to evaluate Member
objects, and selects members that are "strong" with respect to the
reference ownership, as defined by the backup-strength.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSafetyFilter
(Ownership owners, int iStore) Construct a SafetyFilter with the specified ownership. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Apply the test to the input argument.Return the ownership used to evaluate member safety.int
Return the storage index at which to evaluate members for safety.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tangosol.util.Filter
and, asLimitFilter, associatedWith, forKeys, forPartitions, or, xor
-
Field Details
-
m_owners
The ownership. -
m_iStore
protected int m_iStoreThe storage index at which to evaluate members for safety.
-
-
Constructor Details
-
SafetyFilter
Construct a SafetyFilter with the specified ownership.- Parameters:
owners
- the ownershipiStore
- the storage index at which to evaluate members for safety
-
-
Method Details
-
getOwnership
Return the ownership used to evaluate member safety.- Returns:
- the ownership
-
getStorageIndex
public int getStorageIndex()Return the storage index at which to evaluate members for safety.- Returns:
- the storage index at which to evaluate members for safety
-
evaluate
Apply the test to the input argument.
-