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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_cFairShare
The cached fair-share load.protected boolean
m_fPrimary
True iff this filter represents primary partition load.
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnderloadedFilter(boolean fPrimary)
Construct an UnderloadedFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Object o)
Apply the test to the input argument.int
getFairShare()
Return the fair-share partition load.boolean
isPrimary()
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, toExpression, xor
-
-