Package org.apache.cassandra.repair
Class SymmetricRemoteSyncTask
java.lang.Object
org.apache.cassandra.utils.concurrent.AbstractFuture<V>
org.apache.cassandra.utils.concurrent.AsyncFuture<SyncStat>
org.apache.cassandra.repair.SyncTask
org.apache.cassandra.repair.SymmetricRemoteSyncTask
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<SyncStat>,io.netty.util.concurrent.Future<SyncStat>,Runnable,Future<SyncStat>,CompletableRemoteSyncTask,Awaitable,Future<SyncStat>
SymmetricRemoteSyncTask sends
SyncRequest to remote(non-coordinator) node
to repair(stream) data with other replica.
When SymmetricRemoteSyncTask receives SyncComplete from remote node, task completes.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable -
Field Summary
Fields inherited from class org.apache.cassandra.repair.SyncTask
ctx, desc, nodePair, previewKind, rangesToSync, startTime, statFields inherited from class org.apache.cassandra.utils.concurrent.AbstractFuture
CANCELLED, UNCANCELLABLE, UNSET -
Constructor Summary
ConstructorsConstructorDescriptionSymmetricRemoteSyncTask(SharedContext ctx, RepairJobDesc desc, InetAddressAndPort r1, InetAddressAndPort r2, List<Range<Token>> differences, PreviewKind previewKind) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidsyncComplete(boolean success, List<SessionSummary> summaries) toString()Methods inherited from class org.apache.cassandra.repair.SyncTask
abort, finished, isLocal, nodePair, runMethods inherited from class org.apache.cassandra.utils.concurrent.AsyncFuture
await, awaitUntil, flatMap, mapMethods inherited from class org.apache.cassandra.utils.concurrent.AbstractFuture
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, tryFailure, trySuccessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.utils.concurrent.Future
await, awaitUninterruptibly, flatMap, rethrowIfFailed, sync, syncThrowUncheckedOnInterrupt, syncUninterruptibly
-
Constructor Details
-
Method Details
-
startSync
protected void startSync() -
syncComplete
- Specified by:
syncCompletein interfaceCompletableRemoteSyncTask
-
toString
- Overrides:
toStringin classAbstractFuture<SyncStat>
-