Class OpenJobRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class OpenJobRequest extends ActionRequest implements org.elasticsearch.xcontent.ToXContentObject
Request to open a Machine Learning Job
  • Field Details

    • TIMEOUT

      public static final org.elasticsearch.xcontent.ParseField TIMEOUT
    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<OpenJobRequest,Void> PARSER
  • Constructor Details

    • OpenJobRequest

      public OpenJobRequest(String jobId)
      Create a new request with the desired jobId
      Parameters:
      jobId - unique jobId, must not be null
  • Method Details

    • fromXContent

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

      public String getJobId()
    • setJobId

      public void setJobId(String jobId)
      The jobId to open
      Parameters:
      jobId - unique jobId, must not be null
    • getTimeout

      public org.elasticsearch.core.TimeValue getTimeout()
    • setTimeout

      public void setTimeout(org.elasticsearch.core.TimeValue timeout)
      How long to wait for job to open before timing out the request
      Parameters:
      timeout - default value of 30 minutes
    • validate

      Specified by:
      validate in class ActionRequest
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class TransportRequest
    • hashCode

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

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