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
public class SimpleAssignmentStrategy.AnalysisContext.SafetyFilter extends Object implements Filter
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SafetyFilter(Ownership owners, int iStore)
Construct a SafetyFilter with the specified ownership.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Object o)
Apply the test to the input argument.Ownership
getOwnership()
Return the ownership used to evaluate member safety.int
getStorageIndex()
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, toExpression, xor
-
-
-
-
Field Detail
-
m_owners
protected Ownership m_owners
The ownership.
-
m_iStore
protected int m_iStore
The storage index at which to evaluate members for safety.
-
-
Constructor Detail
-
SafetyFilter
public SafetyFilter(Ownership owners, int iStore)
Construct a SafetyFilter with the specified ownership.- Parameters:
owners
- the ownershipiStore
- the storage index at which to evaluate members for safety
-
-
Method Detail
-
getOwnership
public Ownership 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
-
-