org.infinispan.distribution
Class RehashTask
java.lang.Object
org.infinispan.distribution.RehashTask
- All Implemented Interfaces:
- Callable<Void>
- Direct Known Subclasses:
- JoinTask, LeaveTask
public abstract class RehashTask
- extends Object
- implements Callable<Void>
// TODO: Manik: Document this
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RehashTask
protected RehashTask(DistributionManagerImpl dmi,
RpcManager rpcManager,
Configuration configuration,
TransactionLogger transactionLogger,
CommandsFactory cf,
DataContainer dataContainer)
call
public Void call()
throws Exception
- Specified by:
call
in interface Callable<Void>
- Throws:
Exception
performRehash
protected abstract void performRehash()
throws Exception
- Throws:
Exception
coordinator
protected Collection<Address> coordinator()
invalidateInvalidHolders
protected void invalidateInvalidHolders(ConsistentHash chOld,
ConsistentHash chNew)
throws ExecutionException,
InterruptedException
- Throws:
ExecutionException
InterruptedException
getInvalidHolders
protected Collection<Address> getInvalidHolders(Object key,
ConsistentHash chOld,
ConsistentHash chNew)
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.