Interface IndicesClusterStateService.AllocatedIndex<T extends IndicesClusterStateService.Shard>

    • Method Detail

      • getIndexSettings

        IndexSettings getIndexSettings()
        Returns the index settings of this index.
      • updateMetaData

        void updateMetaData​(IndexMetaData currentIndexMetaData,
                            IndexMetaData newIndexMetaData)
        Updates the metadata of this index. Changes become visible through getIndexSettings().
        Parameters:
        currentIndexMetaData - the current index metadata
        newIndexMetaData - the new index metadata
      • getShardOrNull

        @Nullable
        T getShardOrNull​(int shardId)
        Returns shard with given id.
      • removeShard

        void removeShard​(int shardId,
                         String message)
        Removes shard with given id.