Package org.elasticsearch.client.tasks
Class GetTaskRequest
- java.lang.Object
-
- org.elasticsearch.client.tasks.GetTaskRequest
-
- All Implemented Interfaces:
Validatable
public class GetTaskRequest extends Object implements Validatable
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description GetTaskRequest(String nodeId, long taskId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetNodeId()longgetTaskId()TimeValuegetTimeout()Timeout to wait for any async actions this request must take.booleangetWaitForCompletion()Should this request wait for all found tasks to complete?inthashCode()GetTaskRequestsetTimeout(TimeValue timeout)Timeout to wait for any async actions this request must take.GetTaskRequestsetWaitForCompletion(boolean waitForCompletion)Should this request wait for all found tasks to complete?Optional<ValidationException>validate()Perform validation.
-
-
-
Constructor Detail
-
GetTaskRequest
public GetTaskRequest(String nodeId, long taskId)
-
-
Method Detail
-
getNodeId
public String getNodeId()
-
getTaskId
public long getTaskId()
-
getWaitForCompletion
public boolean getWaitForCompletion()
Should this request wait for all found tasks to complete?
-
setWaitForCompletion
public GetTaskRequest setWaitForCompletion(boolean waitForCompletion)
Should this request wait for all found tasks to complete?
-
getTimeout
public TimeValue getTimeout()
Timeout to wait for any async actions this request must take. It must take anywhere from 0 to 2.
-
setTimeout
public GetTaskRequest setTimeout(TimeValue timeout)
Timeout to wait for any async actions this request must take.
-
validate
public Optional<ValidationException> validate()
Description copied from interface:ValidatablePerform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. AValidationExceptionthat is not null is assumed to contain validation errors and will be thrown.- Specified by:
validatein interfaceValidatable- Returns:
- An
OptionalValidationExceptionthat contains a list of validation errors.
-
-