Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net.partition
Class SimpleAssignmentStrategy.AnalysisContext.UnderloadedFilter

java.lang.Object
  extended by com.tangosol.net.partition.SimpleAssignmentStrategy.AnalysisContext.UnderloadedFilter

All Implemented Interfaces:
Filter
Enclosing class:
SimpleAssignmentStrategy.AnalysisContext

public class SimpleAssignmentStrategy.AnalysisContext.UnderloadedFilter
extends java.lang.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.


Field Summary
protected  int m_cFairShare
          The cached fair-share load.
protected  boolean m_fPrimary
          True iff this filter represents primary partition load.

 

Constructor Summary
protected SimpleAssignmentStrategy.AnalysisContext.UnderloadedFilter(boolean fPrimary)
          Construct an UnderloadedFilter.

 

Method Summary
 boolean evaluate(java.lang.Object o)
          Apply the test to the object.
 int getFairShare()
          Return the fair-share partition load.
 boolean isPrimary()
          Return true iff this Filter compares the primary partition load.

 

Field Detail

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 Detail

SimpleAssignmentStrategy.AnalysisContext.UnderloadedFilter

protected SimpleAssignmentStrategy.AnalysisContext.UnderloadedFilter(boolean fPrimary)
Construct an UnderloadedFilter.
Parameters:
fPrimary - true iff the filter should compare primary partition load

Method Detail

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(java.lang.Object o)
Apply the test to the object.
Specified by:
evaluate in interface Filter
Parameters:
o - the object to test
Returns:
true if the test passes, false otherwise

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.