Class MetaStateService

java.lang.Object
org.elasticsearch.gateway.MetaStateService

public class MetaStateService extends Object
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 Details

  • Constructor Details

  • Method Details

    • loadIndexState

      @Nullable public IndexMetadata loadIndexState(Index index) throws IOException
      Loads the index state for the provided index name, returning null if doesn't exists.
      Throws:
      IOException
    • unreferenceAll

      public void unreferenceAll() throws IOException
      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

      public void deleteAll() throws IOException
      Removes manifest file, global metadata and all index metadata
      Throws:
      IOException