java.lang.Object
org.elasticsearch.gateway.MetaStateService
Handles writing and loading
Manifest, Metadata and IndexMetadata as used for cluster state persistence in
versions prior to Version.V_7_6_0, used to read this older format during an upgrade from these versions.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetaStateService(NodeEnvironment nodeEnv, NamedXContentRegistry namedXContentRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves manifest file, global metadata and all index metadataloadIndexState(Index index) Loads the index state for the provided index name, returning null if doesn't exists.voidCreates empty cluster state file on disk, deleting global metadata and unreferencing all index metadata (only used for dangling indices at that point).
-
Field Details
-
nodeEnv
-
namedXContentRegistry
-
-
Constructor Details
-
MetaStateService
-
-
Method Details
-
loadIndexState
Loads the index state for the provided index name, returning null if doesn't exists.- Throws:
IOException
-
unreferenceAll
Creates empty cluster state file on disk, deleting global metadata and unreferencing all index metadata (only used for dangling indices at that point).- Throws:
IOException
-
deleteAll
Removes manifest file, global metadata and all index metadata- Throws:
IOException
-