Class ResetJobResponse

java.lang.Object
org.elasticsearch.client.ml.ResetJobResponse
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class ResetJobResponse extends Object implements org.elasticsearch.xcontent.ToXContentObject
Response object that contains the acknowledgement or the task id depending on whether the reset job action was requested to wait for completion.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.elasticsearch.xcontent.ConstructingObjectParser<ResetJobResponse,Void>
     

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    fromXContent(org.elasticsearch.xcontent.XContentParser parser)
     
    Get the action acknowledgement
    org.elasticsearch.tasks.TaskId
    Get the task id
    int
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment
  • Field Details

    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<ResetJobResponse,Void> PARSER
  • Method Details

    • fromXContent

      public static ResetJobResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • getAcknowledged

      public Boolean getAcknowledged()
      Get the action acknowledgement
      Returns:
      null when the request had ResetJobRequest.getWaitForCompletion() set to false or otherwise a boolean that indicates whether the job was reset successfully.
    • getTask

      public org.elasticsearch.tasks.TaskId getTask()
      Get the task id
      Returns:
      null when the request had ResetJobRequest.getWaitForCompletion() set to true or otherwise the id of the job reset task.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException