public class GridDhtPartitionsExchangeFuture extends GridFutureAdapter<AffinityTopologyVersion> 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,
Collection<DynamicCacheChangeRequest> reqs) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheChangeRequests(Collection<DynamicCacheChangeRequest> reqs) |
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 |
isCacheAdded(int cacheId,
AffinityTopologyVersion topVer) |
boolean |
isCacheTopologyValid(GridCacheContext cctx)
Returns is cache topology valid.
|
boolean |
isLocalClientAdded(int cacheId) |
boolean |
onAdded() |
boolean |
onDone(AffinityTopologyVersion 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() |
boolean |
skipPreload() |
GridDiscoveryTopologySnapshot |
topologySnapshot()
Gets a topology snapshot for the topology version represented by the future.
|
AffinityTopologyVersion |
topologyVersion()
Gets topology version of this future.
|
String |
toString() |
cancel, chain, duration, endTime, error, get, get, get, get0, ignoreInterrupts, 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, Collection<DynamicCacheChangeRequest> reqs)
cctx - Cache context.busyLock - Busy lock.exchId - Exchange ID.reqs - Cache change requests.public void cacheChangeRequests(Collection<DynamicCacheChangeRequest> reqs)
reqs - Cache change requests.public GridDiscoveryTopologySnapshot topologySnapshot() throws IgniteCheckedException
topologySnapshot in interface GridDhtTopologyFutureIgniteCheckedException - If topology future failed.public AffinityTopologyVersion topologyVersion()
topologyVersion in interface GridDhtTopologyFuturepublic boolean skipPreload()
public boolean dummy()
public boolean forcePreload()
public boolean reassign()
public boolean dummyReassign()
True if dummy reassign.public boolean isCacheAdded(int cacheId,
AffinityTopologyVersion topVer)
cacheId - Cache ID to check.topVer - Topology version.True if cache was added during this exchange.public boolean isLocalClientAdded(int cacheId)
cacheId - Cache ID.True if local client has been added.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(AffinityTopologyVersion res, Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<AffinityTopologyVersion>res - Optional result.err - Optional error.True if result was set by this call.public boolean isCacheTopologyValid(GridCacheContext cctx)
isCacheTopologyValid in interface GridDhtTopologyFuturecctx - Cache context.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<AffinityTopologyVersion>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015