Module org.elasticsearch.xcore
Class SnapshotUpgradeTaskParams
java.lang.Object
org.elasticsearch.xpack.core.ml.job.snapshot.upgrade.SnapshotUpgradeTaskParams
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,PersistentTaskParams,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,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 Stringstatic final org.elasticsearch.xcontent.ConstructingObjectParser<SnapshotUpgradeTaskParams, 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 SnapshotUpgradeTaskParamsfromXContent(org.elasticsearch.xcontent.XContentParser parser) getJobId()getMlId()The id of the ML config this task is executinginthashCode()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, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
SNAPSHOT_ID
public static final org.elasticsearch.xcontent.ParseField SNAPSHOT_ID -
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<SnapshotUpgradeTaskParams,Void> PARSER -
NAME
- See Also:
-
-
Constructor Details
-
SnapshotUpgradeTaskParams
- Throws:
IOException
-
SnapshotUpgradeTaskParams
-
-
Method Details
-
getJobId
-
getSnapshotId
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin 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
-
equals
-
hashCode
public int hashCode() -
getMlId
Description copied from interface:MlTaskParamsThe id of the ML config this task is executing- Specified by:
getMlIdin interfaceMlTaskParams
-
fromXContent
public static SnapshotUpgradeTaskParams fromXContent(org.elasticsearch.xcontent.XContentParser parser)
-