public class GridClockDeltaSnapshot extends Object
| Constructor and Description |
|---|
GridClockDeltaSnapshot(GridClockDeltaVersion ver,
Map<UUID,Long> deltas) |
GridClockDeltaSnapshot(GridClockDeltaVersion ver,
UUID locNodeId,
GridDiscoveryTopologySnapshot discoSnap,
int avgSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitReady(long timeout)
Awaits either until snapshot is ready or timeout elapses.
|
Map<UUID,Long> |
deltas() |
boolean |
onDeltaReceived(UUID nodeId,
long timeDelta)
Callback invoked when time delta is received from remote node.
|
void |
onNodeLeft(UUID nodeId)
Callback invoked when node left.
|
Collection<UUID> |
pendingNodeIds() |
boolean |
ready() |
String |
toString() |
GridClockDeltaVersion |
version() |
public GridClockDeltaSnapshot(GridClockDeltaVersion ver, UUID locNodeId, GridDiscoveryTopologySnapshot discoSnap, int avgSize)
ver - Snapshot version.locNodeId - Local node ID.discoSnap - Discovery snapshot.avgSize - Average size.public GridClockDeltaSnapshot(GridClockDeltaVersion ver, Map<UUID,Long> deltas)
ver - Snapshot version.deltas - Deltas map.public GridClockDeltaVersion version()
public void awaitReady(long timeout)
throws IgniteInterruptedCheckedException
timeout - Timeout to wait.IgniteInterruptedCheckedException - If wait was interrupted.public boolean onDeltaReceived(UUID nodeId, long timeDelta)
nodeId - Node ID.timeDelta - Calculated time delta.True if more samples needed from that node.public void onNodeLeft(UUID nodeId)
nodeId - Left node ID.public boolean ready()
True if snapshot is ready.public Collection<UUID> pendingNodeIds()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017