Module org.elasticsearch.server
Class ShardChangesObserver
java.lang.Object
org.elasticsearch.cluster.routing.allocation.ShardChangesObserver
- All Implemented Interfaces:
RoutingChangesObserver
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.routing.RoutingChangesObserver
RoutingChangesObserver.DelegatingRoutingChangesObserver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrelocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard, String reason) Called when relocation of a started shard is initiated.voidreplicaPromoted(ShardRouting replicaShard) Called when started replica is promoted to primary.voidshardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo) Called when a shard is failed or cancelled.voidshardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard) Called when unassigned shard is initialized.voidshardStarted(ShardRouting initializingShard, ShardRouting startedShard) Called when an initializing shard is started.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.routing.RoutingChangesObserver
initializedReplicaReinitialized, relocationCompleted, relocationFailureInfoUpdated, relocationSourceRemoved, unassignedInfoUpdated
-
Constructor Details
-
ShardChangesObserver
public ShardChangesObserver()
-
-
Method Details
-
shardInitialized
Description copied from interface:RoutingChangesObserverCalled when unassigned shard is initialized. Does not include initializing relocation target shards.- Specified by:
shardInitializedin interfaceRoutingChangesObserver
-
shardStarted
Description copied from interface:RoutingChangesObserverCalled when an initializing shard is started.- Specified by:
shardStartedin interfaceRoutingChangesObserver
-
relocationStarted
public void relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard, String reason) Description copied from interface:RoutingChangesObserverCalled when relocation of a started shard is initiated.- Specified by:
relocationStartedin interfaceRoutingChangesObserver
-
shardFailed
Description copied from interface:RoutingChangesObserverCalled when a shard is failed or cancelled.- Specified by:
shardFailedin interfaceRoutingChangesObserver
-
replicaPromoted
Description copied from interface:RoutingChangesObserverCalled when started replica is promoted to primary.- Specified by:
replicaPromotedin interfaceRoutingChangesObserver
-