Package com.tangosol.net.partition
Class SimpleAssignmentStrategy.AnalysisContext.UnderloadedFilter
java.lang.Object
com.tangosol.net.partition.SimpleAssignmentStrategy.AnalysisContext.UnderloadedFilter
- All Implemented Interfaces:
Filter,Serializable
- Enclosing class:
SimpleAssignmentStrategy.AnalysisContext
public class SimpleAssignmentStrategy.AnalysisContext.UnderloadedFilter
extends Object
implements Filter
UnderloadedFilter is a Filter implementation that is used to evaluate
Member objects, and selects those whose partition load is
"underloaded" in comparison to the fair-share load.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe cached fair-share load.protected booleanTrue iff this filter represents primary partition load. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnderloadedFilter(boolean fPrimary) Construct an UnderloadedFilter. -
Method Summary
Modifier and TypeMethodDescriptionbooleanApply the test to the input argument.intReturn the fair-share partition load.booleanReturn true iff this Filter compares the primary partition load.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.util.Filter
and, asLimitFilter, associatedWith, forKeys, forPartitions, or, xor
-
Field Details
-
m_fPrimary
protected boolean m_fPrimaryTrue iff this filter represents primary partition load.
-
Constructor Details
-
UnderloadedFilter
protected UnderloadedFilter(boolean fPrimary) Construct an UnderloadedFilter.- Parameters:
fPrimary- true iff the filter should compare primary partition load
-
-
Method Details
-
isPrimary
public boolean isPrimary()Return true iff this Filter compares the primary partition load.- Returns:
- true if comparing the primary partition load
-
evaluate
Apply the test to the input argument.
-