Module org.elasticsearch.server
Package org.elasticsearch.upgrades
Class SystemIndexMigrationTaskState
java.lang.Object
org.elasticsearch.upgrades.SystemIndexMigrationTaskState
- All Implemented Interfaces:
NamedWriteable,Writeable,PersistentTaskState,ToXContent,ToXContentObject
Contains the current state of system index migration progress. Used to resume runs if there's a node failure during migration.
-
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
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfromXContent(XContentParser parser) Gets the name of the feature which owns the index that's currently being migrated.Gets the name of the index that's currently being migrated.Retrieves metadata stored by the pre-upgrade hook, intended for consumption by the post-migration hook.Returns the name of the writeable objectinthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
SystemIndexMigrationTaskState
-
SystemIndexMigrationTaskState
- Throws:
IOException
-
-
Method Details
-
getCurrentIndex
Gets the name of the index that's currently being migrated. -
getCurrentFeature
Gets the name of the feature which owns the index that's currently being migrated. -
getFeatureCallbackMetadata
Retrieves metadata stored by the pre-upgrade hook, intended for consumption by the post-migration hook. SeeSystemIndexPlugin.prepareForIndicesMigration(ClusterService, Client, ActionListener)andSystemIndexPlugin.indicesMigrationComplete(Map, ClusterService, Client, ActionListener)for details on the pre- and post-migration hooks. -
fromXContent
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-