Streamable, Writeable, TaskAwareRequestpublic class CancelTasksRequest extends BaseTasksRequest<CancelTasksRequest>
TransportRequest.EmptyWriteable.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.
|
getShouldStoreResultgetActions, getNodes, getParentTaskId, getTaskId, getTimeout, setActions, setNodes, setParentTaskId, setTaskId, setTimeout, setTimeout, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic static final java.lang.String DEFAULT_REASON
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class BaseTasksRequest<CancelTasksRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class BaseTasksRequest<CancelTasksRequest>java.io.IOExceptionpublic boolean match(Task task)
match in class BaseTasksRequest<CancelTasksRequest>public CancelTasksRequest setReason(java.lang.String reason)
public java.lang.String getReason()