Class AbstractIndicesClusterStateServiceTestCase.MockIndexService
java.lang.Object
org.elasticsearch.indices.cluster.AbstractIndicesClusterStateServiceTestCase.MockIndexService
- All Implemented Interfaces:
Iterable<AbstractIndicesClusterStateServiceTestCase.MockIndexShard>
,IndicesClusterStateService.AllocatedIndex<AbstractIndicesClusterStateServiceTestCase.MockIndexShard>
- Enclosing class:
AbstractIndicesClusterStateServiceTestCase
protected class AbstractIndicesClusterStateServiceTestCase.MockIndexService
extends Object
implements IndicesClusterStateService.AllocatedIndex<AbstractIndicesClusterStateServiceTestCase.MockIndexShard>
Mock for
IndexService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateShard
(ShardRouting routing) getShardOrNull
(int shardId) iterator()
void
removeShard
(int shardId, String reason, Executor closeExecutor, ActionListener<Void> closeListener) void
updateMapping
(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata) void
updateMetadata
(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MockIndexService
-
-
Method Details
-
getIndexSettings
- Specified by:
getIndexSettings
in interfaceIndicesClusterStateService.AllocatedIndex<AbstractIndicesClusterStateServiceTestCase.MockIndexShard>
-
updateMapping
public void updateMapping(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata) throws IOException - Specified by:
updateMapping
in interfaceIndicesClusterStateService.AllocatedIndex<AbstractIndicesClusterStateServiceTestCase.MockIndexShard>
- Throws:
IOException
-
updateMetadata
- Specified by:
updateMetadata
in interfaceIndicesClusterStateService.AllocatedIndex<AbstractIndicesClusterStateServiceTestCase.MockIndexShard>
-
getShardOrNull
- Specified by:
getShardOrNull
in interfaceIndicesClusterStateService.AllocatedIndex<AbstractIndicesClusterStateServiceTestCase.MockIndexShard>
-
createShard
public AbstractIndicesClusterStateServiceTestCase.MockIndexShard createShard(ShardRouting routing) throws IOException - Throws:
IOException
-
removeShard
public void removeShard(int shardId, String reason, Executor closeExecutor, ActionListener<Void> closeListener) - Specified by:
removeShard
in interfaceIndicesClusterStateService.AllocatedIndex<AbstractIndicesClusterStateServiceTestCase.MockIndexShard>
-
iterator
- Specified by:
iterator
in interfaceIterable<AbstractIndicesClusterStateServiceTestCase.MockIndexShard>
-