public class SymmetricRemoteSyncTask extends SyncTask implements CompletableRemoteSyncTask
SyncRequest
to remote(non-coordinator) node
to repair(stream) data with other replica.
When SymmetricRemoteSyncTask receives SyncComplete from remote node, task completes.desc, nodePair, previewKind, rangesToSync, startTime, stat
Constructor and Description |
---|
SymmetricRemoteSyncTask(RepairJobDesc desc,
InetAddressAndPort r1,
InetAddressAndPort r2,
java.util.List<Range<Token>> differences,
PreviewKind previewKind) |
Modifier and Type | Method and Description |
---|---|
protected void |
startSync() |
void |
syncComplete(boolean success,
java.util.List<SessionSummary> summaries) |
java.lang.String |
toString() |
abort, finished, isLocal, nodePair, run
public SymmetricRemoteSyncTask(RepairJobDesc desc, InetAddressAndPort r1, InetAddressAndPort r2, java.util.List<Range<Token>> differences, PreviewKind previewKind)
public void syncComplete(boolean success, java.util.List<SessionSummary> summaries)
syncComplete
in interface CompletableRemoteSyncTask
public java.lang.String toString()
toString
in class com.google.common.util.concurrent.AbstractFuture<SyncStat>
Copyright © 2009- The Apache Software Foundation