public class CancelTasksRequest extends BaseTasksRequest<CancelTasksRequest>
TransportRequest.Empty
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_REASON |
ALL_ACTIONS, ALL_NODES, ALL_TASKS
headers
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, validate
createTask, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public static final String DEFAULT_REASON
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BaseTasksRequest<CancelTasksRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BaseTasksRequest<CancelTasksRequest>
IOException
public boolean match(Task task)
match
in class BaseTasksRequest<CancelTasksRequest>
public CancelTasksRequest setReason(String reason)
public String getReason()
Copyright © 2009–2016. All rights reserved.