public class CancelTasksRequest extends BaseTasksRequest<CancelTasksRequest>
TransportRequest.Empty| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_REASON |
ALL_ACTIONS, ALL_NODES| Constructor and Description |
|---|
CancelTasksRequest() |
| Modifier and Type | Method and 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.
|
getActions, getNodes, getParentTaskId, getTaskId, getTimeout, setActions, setNodes, setParentTaskId, setTaskId, setTimeout, setTimeout, validategetShouldStoreResultgetParentTask, setParentTaskremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTask, getDescription, 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 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()