Package org.elasticsearch.client.ml
Class OpenJobRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.client.ml.OpenJobRequest
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject,TaskAwareRequest
public class OpenJobRequest extends ActionRequest implements ToXContentObject
Request to open a Machine Learning Job
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object> -
Field Summary
Fields Modifier and Type Field Description static ConstructingObjectParser<OpenJobRequest,java.lang.Void>PARSERstatic ParseFieldTIMEOUT -
Constructor Summary
Constructors Constructor Description OpenJobRequest(java.lang.String jobId)Create a new request with the desired jobId -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object other)static OpenJobRequestfromXContent(XContentParser parser)java.lang.StringgetJobId()TimeValuegetTimeout()inthashCode()voidsetJobId(java.lang.String jobId)The jobId to openvoidsetTimeout(TimeValue timeout)How long to wait for job to open before timing out the requestjava.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)ActionRequestValidationExceptionvalidate()Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
Constructor Details
-
OpenJobRequest
public OpenJobRequest(java.lang.String jobId)Create a new request with the desired jobId- Parameters:
jobId- unique jobId, must not be null
-
-
Method Details
-
fromXContent
- Throws:
java.io.IOException
-
getJobId
public java.lang.String getJobId() -
setJobId
public void setJobId(java.lang.String jobId)The jobId to open- Parameters:
jobId- unique jobId, must not be null
-
getTimeout
-
setTimeout
How long to wait for job to open before timing out the request- Parameters:
timeout- default value of 30 minutes
-
validate
- Specified by:
validatein classActionRequest
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-