Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.net.partition
Class SimpleAssignmentStrategy.SimpleLoadCalculator

java.lang.Object
  extended by com.tangosol.net.partition.SimpleAssignmentStrategy.SimpleLoadCalculator

All Implemented Interfaces:
SimpleAssignmentStrategy.LoadCalculator
Enclosing class:
SimpleAssignmentStrategy

public static class SimpleAssignmentStrategy.SimpleLoadCalculator
extends java.lang.Object
implements SimpleAssignmentStrategy.LoadCalculator

SimpleLoadCalculator defines a "count-based" load (e.g. the load of each partition is defined to be 1).


Constructor Summary
SimpleAssignmentStrategy.SimpleLoadCalculator()
           

 

Method Summary
 int getLoad(int nPartition)
          Return the load for the specified partition.
 int getLoad(PartitionSet parts)
          Return the load for the specified set of partitions.

 

Constructor Detail

SimpleAssignmentStrategy.SimpleLoadCalculator

public SimpleAssignmentStrategy.SimpleLoadCalculator()

Method Detail

getLoad

public int getLoad(int nPartition)
Return the load for the specified partition.
Specified by:
getLoad in interface SimpleAssignmentStrategy.LoadCalculator
Parameters:
nPartition - the partition to determine the load for
Returns:
the load for the specified partition

getLoad

public int getLoad(PartitionSet parts)
Return the load for the specified set of partitions.
Specified by:
getLoad in interface SimpleAssignmentStrategy.LoadCalculator
Parameters:
parts - the partition set to determine the load for
Returns:
the load for the specified set of partitions

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


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