public class LocalSyncTask extends SyncTask implements StreamEventHandler
desc, firstEndpoint, secondEndpoint, stat
Constructor and Description |
---|
LocalSyncTask(RepairJobDesc desc,
java.net.InetAddress firstEndpoint,
java.net.InetAddress secondEndpoint,
java.util.List<Range<Token>> rangesToSync,
long repairedAt) |
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, run
public LocalSyncTask(RepairJobDesc desc, java.net.InetAddress firstEndpoint, java.net.InetAddress secondEndpoint, java.util.List<Range<Token>> rangesToSync, long repairedAt)
protected void startSync(java.util.List<Range<Token>> differences)
public void handleStreamEvent(StreamEvent event)
StreamEventHandler
handleStreamEvent
in interface StreamEventHandler
event
- Stream event.StreamEvent.Type
public 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 © 2022 The Apache Software Foundation