Package com.tangosol.net.partition
Class SimpleAssignmentStrategy.SimpleLoadCalculator
java.lang.Object
com.tangosol.net.partition.SimpleAssignmentStrategy.SimpleLoadCalculator
- All Implemented Interfaces:
 SimpleAssignmentStrategy.LoadCalculator
- Enclosing class:
 SimpleAssignmentStrategy
public static class SimpleAssignmentStrategy.SimpleLoadCalculator
extends Object
implements SimpleAssignmentStrategy.LoadCalculator
SimpleLoadCalculator defines a "count-based" load (e.g. the load of each
 partition is defined to be 1).
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintgetLoad(int nPartition) Return the load for the specified partition.intgetLoad(PartitionSet parts) Return the load for the specified set of partitions. 
- 
Constructor Details
- 
SimpleLoadCalculator
public SimpleLoadCalculator() 
 - 
 - 
Method Details
- 
getLoad
public int getLoad(int nPartition) Return the load for the specified partition.- Specified by:
 getLoadin interfaceSimpleAssignmentStrategy.LoadCalculator- Parameters:
 nPartition- the partition to determine the load for- Returns:
 - the load for the specified partition
 
 - 
getLoad
Return the load for the specified set of partitions.- Specified by:
 getLoadin interfaceSimpleAssignmentStrategy.LoadCalculator- Parameters:
 parts- the partition set to determine the load for- Returns:
 - the load for the specified set of partitions
 
 
 -