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
Modifier and TypeFieldDescriptionprotected int
The cached fair-share load.protected boolean
True iff this filter represents primary partition load. -
Constructor Summary
ModifierConstructorDescriptionprotected
UnderloadedFilter
(boolean fPrimary) Construct an UnderloadedFilter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Apply the test to the input argument.int
Return the fair-share partition load.boolean
Return 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, wait
Methods 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.
-