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 java.net.InetAddress |
firstEndpoint |
protected java.net.InetAddress |
secondEndpoint |
protected SyncStat |
stat |
Constructor and Description |
---|
SyncTask(RepairJobDesc desc,
java.net.InetAddress firstEndpoint,
java.net.InetAddress secondEndpoint,
java.util.List<Range<Token>> rangesToSync) |
Modifier and Type | Method and Description |
---|---|
SyncStat |
getCurrentStat() |
void |
run()
Compares trees, and triggers repairs for any ranges that mismatch.
|
protected abstract void |
startSync(java.util.List<Range<Token>> differences) |
protected final RepairJobDesc desc
protected final java.net.InetAddress firstEndpoint
protected final java.net.InetAddress secondEndpoint
protected volatile SyncStat stat
public SyncTask(RepairJobDesc desc, java.net.InetAddress firstEndpoint, java.net.InetAddress secondEndpoint, java.util.List<Range<Token>> rangesToSync)
Copyright © 2022 The Apache Software Foundation