public class GridDhtPartitionsExchangeFuture extends GridFutureAdapter<Long> implements Comparable<GridDhtPartitionsExchangeFuture>, GridDhtTopologyFuture
AbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx,
boolean reassign,
DiscoveryEvent discoEvt,
GridDhtPartitionExchangeId exchId)
Dummy future created to trigger reassignments if partition
topology changed while preloading.
|
GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx,
DiscoveryEvent discoEvt,
GridDhtPartitionExchangeId exchId)
Force preload future created to trigger reassignments if partition
topology changed while preloading.
|
GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx,
ReadWriteLock busyLock,
GridDhtPartitionExchangeId exchId) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Cleans up resources to avoid excessive memory usage.
|
int |
compareTo(GridDhtPartitionsExchangeFuture 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 msg) |
void |
onReceive(UUID nodeId,
GridDhtPartitionsSingleMessage msg) |
boolean |
reassign() |
GridDiscoveryTopologySnapshot |
topologySnapshot()
Gets a topology snapshot for the topology version represented by the future.
|
String |
toString() |
cancel, chain, duration, endTime, error, get, get, get, get0, isCancelled, isDone, isFailed, listen, onCancelled, onDone, onDone, onDone, result, startTime, tryAcquireShared, tryReleaseSharedacquire, 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, setExclusiveOwnerThreadpublic GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx, boolean reassign, DiscoveryEvent discoEvt, GridDhtPartitionExchangeId exchId)
cctx - Cache context.reassign - Dummy reassign flag.discoEvt - Discovery event.exchId - Exchange id.public GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx, DiscoveryEvent discoEvt, GridDhtPartitionExchangeId exchId)
cctx - Cache context.discoEvt - Discovery event.exchId - Exchange id.public GridDhtPartitionsExchangeFuture(GridCacheSharedContext cctx, ReadWriteLock busyLock, GridDhtPartitionExchangeId exchId)
cctx - Cache context.busyLock - Busy lock.exchId - Exchange ID.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 msg)
nodeId - Sender node id.msg - Single partition info.public void onReceive(UUID nodeId, GridDhtPartitionsFullMessage msg)
nodeId - Sender node ID.msg - Full partition info.public void onNodeLeft(UUID nodeId)
nodeId - Left node id.public int compareTo(GridDhtPartitionsExchangeFuture fut)
compareTo in interface Comparable<GridDhtPartitionsExchangeFuture>public String toString()
toString in class GridFutureAdapter<Long>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015