Interface IndicesClusterStateService.AllocatedIndex<T extends IndicesClusterStateService.Shard>

All Superinterfaces:
IndexComponent, Iterable<T>
All Known Implementing Classes:
IndexService
Enclosing class:
IndicesClusterStateService

public static interface IndicesClusterStateService.AllocatedIndex<T extends IndicesClusterStateService.Shard> extends Iterable<T>, IndexComponent
  • Method Details

    • 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
    • updateMapping

      void updateMapping(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata) throws IOException
      Updates the mappings by applying the incoming ones
      Throws:
      IOException
    • getShardOrNull

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

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