public abstract class SyncTask extends com.google.common.util.concurrent.AbstractFuture<SyncStat> implements java.lang.Runnable
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 |
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 |
---|---|
protected void |
finished() |
boolean |
isLocal() |
SyncNodePair |
nodePair() |
void |
run()
Compares trees, and triggers repairs for any ranges that mismatch.
|
protected abstract void |
startSync() |
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()
Copyright © 2009-2021 The Apache Software Foundation