Class AbstractIndicesClusterStateServiceTestCase.MockIndexShard
java.lang.Object
org.elasticsearch.indices.cluster.AbstractIndicesClusterStateServiceTestCase.MockIndexShard
- All Implemented Interfaces:
IndicesClusterStateService.Shard
- Enclosing class:
AbstractIndicesClusterStateServiceTestCase
protected class AbstractIndicesClusterStateServiceTestCase.MockIndexShard
extends Object
implements IndicesClusterStateService.Shard
Mock for
IndexShard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshardId()
state()
long
term()
void
updateShardState
(ShardRouting shardRouting, long newPrimaryTerm, BiConsumer<IndexShard, ActionListener<PrimaryReplicaSyncer.ResyncTask>> primaryReplicaSyncer, long applyingClusterStateVersion, Set<String> inSyncAllocationIds, IndexShardRoutingTable routingTable) void
updateTerm
(long newTerm)
-
Constructor Details
-
MockIndexShard
-
-
Method Details
-
shardId
- Specified by:
shardId
in interfaceIndicesClusterStateService.Shard
-
recoveryState
- Specified by:
recoveryState
in interfaceIndicesClusterStateService.Shard
-
updateShardState
public void updateShardState(ShardRouting shardRouting, long newPrimaryTerm, BiConsumer<IndexShard, ActionListener<PrimaryReplicaSyncer.ResyncTask>> primaryReplicaSyncer, long applyingClusterStateVersion, Set<String> inSyncAllocationIds, IndexShardRoutingTable routingTable) throws IOException- Specified by:
updateShardState
in interfaceIndicesClusterStateService.Shard
- Throws:
IOException
-
routingEntry
- Specified by:
routingEntry
in interfaceIndicesClusterStateService.Shard
-
state
- Specified by:
state
in interfaceIndicesClusterStateService.Shard
-
term
public long term() -
updateTerm
public void updateTerm(long newTerm) -
getTimestampRange
- Specified by:
getTimestampRange
in interfaceIndicesClusterStateService.Shard
-
getEventIngestedRange
- Specified by:
getEventIngestedRange
in interfaceIndicesClusterStateService.Shard
-