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,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.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
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ObjectParser<OpenJobAction.JobParams, Void> static final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OpenJobAction.JobParamsfromXContent(org.elasticsearch.xcontent.XContentParser parser) getJob()getJobId()getMlId()The id of the ML config this task is executingorg.elasticsearch.core.TimeValueinthashCode()static OpenJobAction.JobParamsparseRequest(String jobId, org.elasticsearch.xcontent.XContentParser parser) voidvoidvoidsetTimeout(org.elasticsearch.core.TimeValue timeout) toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
isFragment
-
Field Details
-
TIMEOUT
public static final org.elasticsearch.xcontent.ParseField TIMEOUT -
JOB
public static final org.elasticsearch.xcontent.ParseField JOB -
PARSER
-
-
Constructor Details
-
JobParams
-
JobParams
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static OpenJobAction.JobParams fromXContent(org.elasticsearch.xcontent.XContentParser parser) -
parseRequest
public static OpenJobAction.JobParams parseRequest(String jobId, org.elasticsearch.xcontent.XContentParser parser) -
getJobId
-
setJobId
-
getTimeout
public org.elasticsearch.core.TimeValue getTimeout() -
setTimeout
public void setTimeout(org.elasticsearch.core.TimeValue timeout) -
getJob
-
setJob
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- 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
-