public class StreamingRepairTask extends java.lang.Object implements java.lang.Runnable, StreamEventHandler
| Modifier and Type | Field and Description |
|---|---|
RepairJobDesc |
desc
Repair session ID that this streaming task belongs
|
SyncRequest |
request |
| Constructor and Description |
|---|
StreamingRepairTask(RepairJobDesc desc,
SyncRequest request) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleStreamEvent(StreamEvent event)
Callback for various streaming events.
|
void |
onFailure(java.lang.Throwable t)
If we failed on either stream in or out, reply fail to the initiator.
|
void |
onSuccess(StreamState state)
If we succeeded on both stream in and out, reply back to the initiator.
|
void |
run() |
public final RepairJobDesc desc
public final SyncRequest request
public StreamingRepairTask(RepairJobDesc desc, SyncRequest request)
public void run()
run in interface java.lang.Runnablepublic void handleStreamEvent(StreamEvent event)
StreamEventHandlerhandleStreamEvent in interface StreamEventHandlerevent - Stream event.StreamEvent.Typepublic void onSuccess(StreamState state)
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 © 2015 The Apache Software Foundation