Class CancelRequest
- java.lang.Object
-
- org.opensearch.client.opensearch._types.RequestBase
-
- org.opensearch.client.opensearch.tasks.CancelRequest
-
public class CancelRequest extends RequestBase
Cancels a task, if it can be cancelled through an API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCancelRequest.BuilderBuilder forCancelRequest.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static Endpoint<CancelRequest,CancelResponse,ErrorResponse>_ENDPOINTEndpoint "tasks.cancel".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>actions()A comma-separated list of actions that should be cancelled.java.util.List<java.lang.String>nodes()A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodesstatic CancelRequestof(java.util.function.Function<CancelRequest.Builder,ObjectBuilder<CancelRequest>> fn)java.lang.StringparentTaskId()Cancel tasks with specified parent task id (node_id:task_number).java.lang.StringtaskId()Cancel the task with specified task id (node_id:task_number)java.lang.BooleanwaitForCompletion()Should the request block until the cancellation of the task and its descendant tasks is completed.
-
-
-
Field Detail
-
_ENDPOINT
public static final Endpoint<CancelRequest,CancelResponse,ErrorResponse> _ENDPOINT
Endpoint "tasks.cancel".
-
-
Method Detail
-
of
public static CancelRequest of(java.util.function.Function<CancelRequest.Builder,ObjectBuilder<CancelRequest>> fn)
-
actions
public final java.util.List<java.lang.String> actions()
A comma-separated list of actions that should be cancelled. Leave empty to cancel all.API name:
actions
-
nodes
public final java.util.List<java.lang.String> nodes()
A comma-separated list of node IDs or names to limit the returned information; use_localto return information from the node you're connecting to, leave empty to get information from all nodesAPI name:
nodes
-
parentTaskId
@Nullable public final java.lang.String parentTaskId()
Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all.API name:
parent_task_id
-
taskId
@Nullable public final java.lang.String taskId()
Cancel the task with specified task id (node_id:task_number)API name:
task_id
-
waitForCompletion
@Nullable public final java.lang.Boolean waitForCompletion()
Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to falseAPI name:
wait_for_completion
-
-