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.
|
boolean |
isLocalTask()
Returns true if the task if the task can be executed locally, false if
it has to be forwarded.
|
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 boolean isLocalTask()
public void run()
run
in interface java.lang.Runnable
public void handleStreamEvent(StreamEvent event)
StreamEventHandler
handleStreamEvent
in interface StreamEventHandler
event
- Stream event.StreamEvent.Type
public 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 © 2013 The Apache Software Foundation