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.Params
Nested 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 TypeMethodDescriptionboolean
fromXContent
(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 objectint
hashCode()
toString()
toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
toXContent
in interfaceToXContent
- Throws:
IOException
-
getWriteableName
Description copied from interface:NamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-