Module org.elasticsearch.xcore
Class OpenJobAction.JobParams
java.lang.Object
org.elasticsearch.xpack.core.ml.action.OpenJobAction.JobParams
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,PersistentTaskParams,ToXContent,ToXContentObject,MlTaskParams
- Enclosing class:
OpenJobAction
public static class OpenJobAction.JobParams
extends Object
implements PersistentTaskParams, MlTaskParams
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ObjectParser<OpenJobAction.JobParams, Void> static final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OpenJobAction.JobParamsfromXContent(XContentParser parser) getJob()getJobId()getMlId()The id of the ML config this task is executinginthashCode()static OpenJobAction.JobParamsparseRequest(String jobId, XContentParser parser) voidvoidvoidsetTimeout(TimeValue timeout) toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
TIMEOUT
-
JOB
-
PARSER
-
-
Constructor Details
-
JobParams
-
JobParams
- Throws:
IOException
-
-
Method Details
-
fromXContent
-
parseRequest
-
getJobId
-
setJobId
-
getTimeout
-
setTimeout
-
getJob
-
setJob
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
getMlId
Description copied from interface:MlTaskParamsThe id of the ML config this task is executing- Specified by:
getMlIdin interfaceMlTaskParams
-