Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.topology
Interface CacheTopologyHandler


public interface CacheTopologyHandler

The link between LocalTopologyManager and StateTransferManager.

Since:
5.2
Author:
Dan Berindei

Method Summary
 void rebalance(CacheTopology cacheTopology)
          Invoked when state transfer has to be started.
 void updateConsistentHash(CacheTopology cacheTopology)
          Invoked when the CH has to be immediately updated because of a leave or when the state transfer has completed and we have to install a permanent CH (pendingCH == null).
 

Method Detail

updateConsistentHash

void updateConsistentHash(CacheTopology cacheTopology)
Invoked when the CH has to be immediately updated because of a leave or when the state transfer has completed and we have to install a permanent CH (pendingCH == null). A state transfer is not always required.


rebalance

void rebalance(CacheTopology cacheTopology)
Invoked when state transfer has to be started. The caller will not consider the local rebalance done when this method returns. Instead, the handler will have to call LocalTopologyManager.confirmRebalance(String, int, Throwable)


Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.