Class DeleteJobRequest

All Implemented Interfaces:, org.elasticsearch.common.util.concurrent.RefCounted, org.elasticsearch.tasks.TaskAwareRequest

public class DeleteJobRequest
extends org.elasticsearch.action.ActionRequest
Request to delete a Machine Learning Job via its ID
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest


    Nested classes/interfaces inherited from interface<V extends java.lang.Object>,<V extends java.lang.Object>
  • Constructor Summary

    Constructor Description
    DeleteJobRequest​(java.lang.String jobId)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    java.lang.Boolean getForce()  
    java.lang.String getJobId()  
    java.lang.Boolean getWaitForCompletion()  
    int hashCode()  
    void setForce​(java.lang.Boolean force)
    Used to forcefully delete an opened job.
    void setJobId​(java.lang.String jobId)
    The jobId which to delete
    void setWaitForCompletion​(java.lang.Boolean waitForCompletion)
    Set whether this request should wait until the operation has completed before returning
    org.elasticsearch.action.ActionRequestValidationException validate()  

    Methods inherited from class org.elasticsearch.action.ActionRequest

    getShouldStoreResult, writeTo

    Methods inherited from class org.elasticsearch.transport.TransportRequest

    getParentTask, setParentTask

    Methods inherited from class org.elasticsearch.transport.TransportMessage

    decRef, incRef, remoteAddress, remoteAddress, tryIncRef

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest

    createTask, getDescription, setParentTask
  • Constructor Details

    • DeleteJobRequest

      public DeleteJobRequest​(java.lang.String jobId)
  • Method Details

    • getJobId

      public java.lang.String getJobId()
    • setJobId

      public void setJobId​(java.lang.String jobId)
      The jobId which to delete
      jobId - unique jobId to delete, must not be null
    • getForce

      public java.lang.Boolean getForce()
    • setForce

      public void setForce​(java.lang.Boolean force)
      Used to forcefully delete an opened job. This method is quicker than closing and deleting the job.
      force - When true forcefully delete an opened job. Defaults to false
    • getWaitForCompletion

      public java.lang.Boolean getWaitForCompletion()
    • setWaitForCompletion

      public void setWaitForCompletion​(java.lang.Boolean waitForCompletion)
      Set whether this request should wait until the operation has completed before returning
      waitForCompletion - When true the 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

      public org.elasticsearch.action.ActionRequestValidationException validate()
      Specified by:
      validate in class org.elasticsearch.action.ActionRequest
    • hashCode

      public int hashCode()
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      equals in class java.lang.Object