org.smallmind.cloud.cluster.pivot
Class RandomWeightedClusterPivot

java.lang.Object
  extended by org.smallmind.cloud.cluster.pivot.RandomWeightedClusterPivot
All Implemented Interfaces:
ClusterPivot

public class RandomWeightedClusterPivot
extends Object
implements ClusterPivot


Constructor Summary
RandomWeightedClusterPivot()
           
 
Method Summary
 ClusterEndpoint nextRequestAddress(Object[] parameters, ClusterEndpoint failedEndpoint)
           
 void removeClusterMember(ClusterEndpoint clusterEndpoint)
           
 void updateClusterStatus(ClusterEndpoint clusterEndpoint, int freeCapacity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomWeightedClusterPivot

public RandomWeightedClusterPivot()
Method Detail

updateClusterStatus

public void updateClusterStatus(ClusterEndpoint clusterEndpoint,
                                int freeCapacity)
Specified by:
updateClusterStatus in interface ClusterPivot

removeClusterMember

public void removeClusterMember(ClusterEndpoint clusterEndpoint)
Specified by:
removeClusterMember in interface ClusterPivot

nextRequestAddress

public ClusterEndpoint nextRequestAddress(Object[] parameters,
                                          ClusterEndpoint failedEndpoint)
Specified by:
nextRequestAddress in interface ClusterPivot


Copyright © 2011. All Rights Reserved.