public class ClusterCacheStatus extends Object
Constructor and Description |
---|
ClusterCacheStatus(String cacheName,
CacheJoinInfo joinInfo) |
public ClusterCacheStatus(String cacheName, CacheJoinInfo joinInfo)
public CacheJoinInfo getJoinInfo()
public boolean hasMembers()
public boolean hasJoiners()
public boolean isTotalOrder()
public boolean isDistributed()
public boolean addMember(Address joiner, float capacityFactor)
true
if the joiner was not already a member, false
otherwisepublic boolean removeMember(Address leaver)
true
if the leaver was a member, false
otherwisepublic boolean updateClusterMembers(List<Address> newClusterMembers)
true
if the members list has changed, false
otherwisepublic CacheTopology getCacheTopology()
public void updateCacheTopology(CacheTopology newTopology)
public boolean needConsistentHashUpdate()
public boolean isRebalanceInProgress()
public boolean startRebalance(CacheTopology newTopology)
true
if a rebalance was started, false
if a rebalance was already in progresspublic boolean confirmRebalanceOnNode(Address member, int receivedTopologyId)
true
if this was the last confirmation needed, false
if more confirmations
are needed or if the rebalance was already confirmed in another way (e.g. members list update)public boolean updateRebalanceMembersList()
removeMember(Address)
,
updateClusterMembers(java.util.List<org.infinispan.remoting.transport.Address>)
etc.)true
if the rebalance was confirmed with this update, false
if more confirmations
are needed or if the rebalance was already confirmed in another way (e.g. the last member confirmed)public void endRebalance()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.