public class LocalSyncTask extends SyncTask implements StreamEventHandler
| Constructor and Description | 
|---|
| LocalSyncTask(RepairJobDesc desc,
             TreeResponse r1,
             TreeResponse r2,
             long repairedAt,
             boolean pullRepair) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | handleStreamEvent(StreamEvent event)Callback for various streaming events. | 
| void | onFailure(java.lang.Throwable t) | 
| void | onSuccess(StreamState result) | 
| protected void | startSync(java.util.List<Range<Token>> differences)Starts sending/receiving our list of differences to/from the remote endpoint: creates a callback
 that will be called out of band once the streams complete. | 
getCurrentStat, runpublic LocalSyncTask(RepairJobDesc desc, TreeResponse r1, TreeResponse r2, long repairedAt, boolean pullRepair)
protected void startSync(java.util.List<Range<Token>> differences)
public void handleStreamEvent(StreamEvent event)
StreamEventHandlerhandleStreamEvent in interface StreamEventHandlerevent - Stream event.StreamEvent.Typepublic void onSuccess(StreamState result)
onSuccess in interface com.google.common.util.concurrent.FutureCallback<StreamState>public void onFailure(java.lang.Throwable t)
onFailure in interface com.google.common.util.concurrent.FutureCallback<StreamState>Copyright © 2018 The Apache Software Foundation