Streamable
, Writeable
, TaskAwareRequest
public class CancelTasksRequest extends BaseTasksRequest<CancelTasksRequest>
TransportRequest.Empty
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
DEFAULT_REASON |
ALL_ACTIONS, ALL_NODES
Constructor | Description |
---|---|
CancelTasksRequest() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getReason() |
The reason for canceling the task.
|
boolean |
match(Task task) |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
CancelTasksRequest |
setReason(java.lang.String reason) |
Set the reason for canceling the task.
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
getShouldStoreResult
getActions, getNodes, getParentTaskId, getTaskId, getTimeout, setActions, setNodes, setParentTaskId, setTaskId, setTimeout, setTimeout, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
remoteAddress, remoteAddress
getParentTask, setParentTask
public static final java.lang.String DEFAULT_REASON
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class BaseTasksRequest<CancelTasksRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class BaseTasksRequest<CancelTasksRequest>
java.io.IOException
public boolean match(Task task)
match
in class BaseTasksRequest<CancelTasksRequest>
public CancelTasksRequest setReason(java.lang.String reason)
public java.lang.String getReason()