public class CancelTasksRequest extends BaseTasksRequest<CancelTasksRequest>
TransportRequest.Empty| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_REASON |
ALL_ACTIONS, ALL_NODES, ALL_TASKSheaders| Constructor and Description |
|---|
CancelTasksRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getReason()
The reason for canceling the task.
|
boolean |
match(Task task) |
void |
readFrom(StreamInput in) |
CancelTasksRequest |
setReason(String reason)
Set the reason for canceling the task.
|
void |
writeTo(StreamOutput out) |
getActions, getNodesIds, getParentTaskId, getTaskId, getTimeout, setActions, setNodesIds, setParentTaskId, setTaskId, setTimeout, setTimeout, validatecreateTask, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic static final String DEFAULT_REASON
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BaseTasksRequest<CancelTasksRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BaseTasksRequest<CancelTasksRequest>IOExceptionpublic boolean match(Task task)
match in class BaseTasksRequest<CancelTasksRequest>public CancelTasksRequest setReason(String reason)
public String getReason()
Copyright © 2009–2017. All rights reserved.