Interface IndicesClusterStateService.AllocatedIndex<T extends IndicesClusterStateService.Shard>
- All Superinterfaces:
IndexComponent
,java.lang.Iterable<T>
- All Known Implementing Classes:
IndexService
- Enclosing class:
- IndicesClusterStateService
public static interface IndicesClusterStateService.AllocatedIndex<T extends IndicesClusterStateService.Shard> extends java.lang.Iterable<T>, IndexComponent
-
Method Summary
Modifier and Type Method Description IndexSettings
getIndexSettings()
Returns the index settings of this index.T
getShardOrNull(int shardId)
Returns shard with given id.void
removeShard(int shardId, java.lang.String message)
Removes shard with given id.boolean
updateMapping(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata)
Checks if index requires refresh from master.void
updateMetadata(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata)
Updates the metadata of this index.
-
Method Details
-
getIndexSettings
IndexSettings getIndexSettings()Returns the index settings of this index. -
updateMetadata
Updates the metadata of this index. Changes become visible throughgetIndexSettings()
.- Parameters:
currentIndexMetadata
- the current index metadatanewIndexMetadata
- the new index metadata
-
updateMapping
boolean updateMapping(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata) throws java.io.IOExceptionChecks if index requires refresh from master.- Throws:
java.io.IOException
-
getShardOrNull
Returns shard with given id. -
removeShard
void removeShard(int shardId, java.lang.String message)Removes shard with given id.
-