Package org.elasticsearch.client.ml
Class DeleteJobRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.client.ml.DeleteJobRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
Request to delete a Machine Learning Job via its ID
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetForce()getJobId()inthashCode()voidUsed to forcefully delete an opened job.voidThe jobId which to deletevoidsetWaitForCompletion(Boolean waitForCompletion) Set whether this request should wait until the operation has completed before returningvalidate()Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult, writeToMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
DeleteJobRequest
-
-
Method Details
-
getJobId
-
setJobId
The jobId which to delete- Parameters:
jobId- unique jobId to delete, must not be null
-
getForce
-
setForce
Used to forcefully delete an opened job. This method is quicker than closing and deleting the job.- Parameters:
force- Whentrueforcefully delete an opened job. Defaults tofalse
-
getWaitForCompletion
-
setWaitForCompletion
Set whether this request should wait until the operation has completed before returning- Parameters:
waitForCompletion- Whentruethe call will wait for the job deletion to complete. Otherwise, the deletion will be executed asynchronously and the response will contain the task id.
-
validate
- Specified by:
validatein classActionRequest
-
hashCode
public int hashCode() -
equals
-