public class GridDhtPartitionsExchangeFuture<K,V> extends GridFutureAdapter<Long> implements Comparable<GridDhtPartitionsExchangeFuture<K,V>>, GridDhtTopologyFuture
AbstractQueuedSynchronizer.ConditionObjectctx| Constructor and Description |
|---|
GridDhtPartitionsExchangeFuture()
Empty constructor required for
Externalizable. |
GridDhtPartitionsExchangeFuture(GridCacheSharedContext<K,V> cctx,
boolean reassign,
DiscoveryEvent discoEvt,
GridDhtPartitionExchangeId exchId)
Dummy future created to trigger reassignments if partition
topology changed while preloading.
|
GridDhtPartitionsExchangeFuture(GridCacheSharedContext<K,V> cctx,
DiscoveryEvent discoEvt,
GridDhtPartitionExchangeId exchId)
Force preload future created to trigger reassignments if partition
topology changed while preloading.
|
GridDhtPartitionsExchangeFuture(GridCacheSharedContext<K,V> cctx,
ReadWriteLock busyLock,
GridDhtPartitionExchangeId exchId) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Cleans up resources to avoid excessive memory usage.
|
int |
compareTo(GridDhtPartitionsExchangeFuture<K,V> fut) |
DiscoveryEvent |
discoveryEvent() |
boolean |
dummy() |
boolean |
dummyReassign() |
boolean |
equals(Object o) |
GridDhtPartitionExchangeId |
exchangeId() |
boolean |
forcePreload() |
int |
hashCode() |
void |
init()
Starts activity.
|
boolean |
onAdded() |
boolean |
onDone(Long res,
Throwable err)
Callback to notify that future is finished.
|
void |
onEvent(GridDhtPartitionExchangeId exchId,
DiscoveryEvent discoEvt)
Event callback.
|
void |
onNodeLeft(UUID nodeId) |
void |
onReceive(UUID nodeId,
GridDhtPartitionsFullMessage<K,V> msg) |
void |
onReceive(UUID nodeId,
GridDhtPartitionsSingleMessage<K,V> msg) |
boolean |
reassign() |
GridDiscoveryTopologySnapshot |
topologySnapshot()
Gets a topology snapshot for the topology version represented by the future.
|
String |
toString() |
cancel, chain, checkValid, concurrentNotify, concurrentNotify, duration, endTime, error, get, get, get, get0, isCancelled, isDone, isFailed, isValid, listenAsync, onCancelled, onDone, onDone, onDone, readExternal, result, startTime, stopListenAsync, syncNotify, syncNotify, tryAcquireShared, tryReleaseShared, writeExternalacquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadclone, finalize, getClass, notify, notifyAll, wait, wait, waitcancel, chain, concurrentNotify, concurrentNotify, duration, get, get, get, isCancelled, isDone, listenAsync, startTime, stopListenAsync, syncNotify, syncNotifypublic GridDhtPartitionsExchangeFuture(GridCacheSharedContext<K,V> cctx, boolean reassign, DiscoveryEvent discoEvt, GridDhtPartitionExchangeId exchId)
cctx - Cache context.reassign - Dummy reassign flag.discoEvt - Discovery event.exchId - Exchange id.public GridDhtPartitionsExchangeFuture(GridCacheSharedContext<K,V> cctx, DiscoveryEvent discoEvt, GridDhtPartitionExchangeId exchId)
cctx - Cache context.discoEvt - Discovery event.exchId - Exchange id.public GridDhtPartitionsExchangeFuture(GridCacheSharedContext<K,V> cctx, ReadWriteLock busyLock, GridDhtPartitionExchangeId exchId)
cctx - Cache context.busyLock - Busy lock.exchId - Exchange ID.public GridDhtPartitionsExchangeFuture()
Externalizable.public GridDiscoveryTopologySnapshot topologySnapshot() throws IgniteCheckedException
topologySnapshot in interface GridDhtTopologyFutureIgniteCheckedException - If topology future failed.public boolean dummy()
public boolean forcePreload()
public boolean reassign()
public boolean dummyReassign()
True if dummy reassign.public boolean onAdded()
Truepublic void onEvent(GridDhtPartitionExchangeId exchId, DiscoveryEvent discoEvt)
exchId - Exchange ID.discoEvt - Discovery event.public DiscoveryEvent discoveryEvent()
public GridDhtPartitionExchangeId exchangeId()
public void init()
throws IgniteInterruptedCheckedException
IgniteInterruptedCheckedException - If interrupted.public boolean onDone(Long res, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Long>res - Optional result.err - Optional error.True if result was set by this call.public void cleanUp()
public void onReceive(UUID nodeId, GridDhtPartitionsSingleMessage<K,V> msg)
nodeId - Sender node id.msg - Single partition info.public void onReceive(UUID nodeId, GridDhtPartitionsFullMessage<K,V> msg)
nodeId - Sender node ID.msg - Full partition info.public void onNodeLeft(UUID nodeId)
nodeId - Left node id.public int compareTo(GridDhtPartitionsExchangeFuture<K,V> fut)
compareTo in interface Comparable<GridDhtPartitionsExchangeFuture<K,V>>public String toString()
toString in class GridFutureAdapter<Long>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015