Class CancelTasksRequest
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- org.elasticsearch.action.ActionRequest
-
- org.elasticsearch.action.support.tasks.BaseTasksRequest<CancelTasksRequest>
-
- org.elasticsearch.action.admin.cluster.node.tasks.cancel.CancelTasksRequest
-
- All Implemented Interfaces:
Writeable,TaskAwareRequest
public class CancelTasksRequest extends BaseTasksRequest<CancelTasksRequest>
A request to cancel tasks
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_REASON-
Fields inherited from class org.elasticsearch.action.support.tasks.BaseTasksRequest
ALL_ACTIONS, ALL_NODES
-
-
Constructor Summary
Constructors Constructor Description CancelTasksRequest()CancelTasksRequest(StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetReason()The reason for canceling the task.booleanmatch(Task task)CancelTasksRequestsetReason(String reason)Set the reason for canceling the task.voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.action.support.tasks.BaseTasksRequest
getActions, getNodes, getParentTaskId, getTaskId, getTimeout, setActions, setNodes, setParentTaskId, setTaskId, setTimeout, setTimeout, validate
-
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
-
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Field Detail
-
DEFAULT_REASON
public static final String DEFAULT_REASON
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CancelTasksRequest
public CancelTasksRequest()
-
CancelTasksRequest
public CancelTasksRequest(StreamInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseTasksRequest<CancelTasksRequest>- Throws:
IOException
-
match
public boolean match(Task task)
- Overrides:
matchin classBaseTasksRequest<CancelTasksRequest>
-
setReason
public CancelTasksRequest setReason(String reason)
Set the reason for canceling the task.
-
getReason
public String getReason()
The reason for canceling the task.
-
-