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 Details

    • m_cFairShare

      protected int m_cFairShare
      The cached fair-share load.
    • m_fPrimary

      protected boolean m_fPrimary
      True 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
    • getFairShare

      public int getFairShare()
      Return the fair-share partition load.
      Returns:
      the fair-share partition load
    • evaluate

      public boolean evaluate(Object o)
      Apply the test to the input argument.
      Specified by:
      evaluate in interface Filter
      Parameters:
      o - the input argument to evaluate
      Returns:
      true if the input argument matches the filter, otherwise false