public abstract class SyncTask extends AsyncFuture<SyncStat> implements java.lang.Runnable
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Modifier and Type | Field and Description |
---|---|
protected RepairJobDesc |
desc |
protected SyncNodePair |
nodePair |
protected PreviewKind |
previewKind |
java.util.List<Range<Token>> |
rangesToSync |
protected long |
startTime |
protected SyncStat |
stat |
CANCELLED, UNCANCELLABLE, UNSET
Modifier | Constructor and Description |
---|---|
protected |
SyncTask(RepairJobDesc desc,
InetAddressAndPort primaryEndpoint,
InetAddressAndPort peer,
java.util.List<Range<Token>> rangesToSync,
PreviewKind previewKind) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
protected void |
finished() |
boolean |
isLocal() |
SyncNodePair |
nodePair() |
void |
run()
Compares trees, and triggers repairs for any ranges that mismatch.
|
protected abstract void |
startSync() |
await, awaitUntil, flatMap, map
addCallback, addCallback, addCallback, addCallback, addCallback, addCallback, addListener, addListener, addListener, addListeners, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly, cancel, cause, description, flatMap, get, get, getNow, getWhenDone, isCancellable, isCancelled, isDone, isSuccess, isUncancellable, map, map, notifyExecutor, removeListener, removeListeners, setUncancellable, setUncancellableExclusive, toString, tryFailure, trySuccess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
await, awaitUninterruptibly, flatMap, rethrowIfFailed, sync, syncThrowUncheckedOnInterrupt, syncUninterruptibly
protected final RepairJobDesc desc
protected final PreviewKind previewKind
protected final SyncNodePair nodePair
protected volatile long startTime
protected final SyncStat stat
protected SyncTask(RepairJobDesc desc, InetAddressAndPort primaryEndpoint, InetAddressAndPort peer, java.util.List<Range<Token>> rangesToSync, PreviewKind previewKind)
protected abstract void startSync()
public SyncNodePair nodePair()
public final void run()
run
in interface java.lang.Runnable
public boolean isLocal()
protected void finished()
public void abort()
Copyright © 2009-2022 The Apache Software Foundation