Class MetaStateService


  • public class MetaStateService
    extends java.lang.Object
    Handles writing and loading both MetaData and IndexMetaData
    • Method Summary

      Modifier and Type Method Description
      IndexMetaData loadIndexState​(Index index)
      Loads the index state for the provided index name, returning null if doesn't exists.
      void writeIndex​(java.lang.String reason, IndexMetaData indexMetaData)
      Writes the index state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadIndexState

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

        public void writeIndex​(java.lang.String reason,
                               IndexMetaData indexMetaData)
                        throws java.io.IOException
        Writes the index state. This method is public for testing purposes.
        Throws:
        java.io.IOException