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 TypeMethodDescriptionvoid
relocationStarted
(ShardRouting startedShard, ShardRouting targetRelocatingShard, String reason) Called when relocation of a started shard is initiated.void
replicaPromoted
(ShardRouting replicaShard) Called when started replica is promoted to primary.void
shardFailed
(ShardRouting failedShard, UnassignedInfo unassignedInfo) Called when a shard is failed or cancelled.void
shardInitialized
(ShardRouting unassignedShard, ShardRouting initializedShard) Called when unassigned shard is initialized.void
shardStarted
(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, wait
Methods 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:RoutingChangesObserver
Called when unassigned shard is initialized. Does not include initializing relocation target shards.- Specified by:
shardInitialized
in interfaceRoutingChangesObserver
-
shardStarted
Description copied from interface:RoutingChangesObserver
Called when an initializing shard is started.- Specified by:
shardStarted
in interfaceRoutingChangesObserver
-
relocationStarted
public void relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard, String reason) Description copied from interface:RoutingChangesObserver
Called when relocation of a started shard is initiated.- Specified by:
relocationStarted
in interfaceRoutingChangesObserver
-
shardFailed
Description copied from interface:RoutingChangesObserver
Called when a shard is failed or cancelled.- Specified by:
shardFailed
in interfaceRoutingChangesObserver
-
replicaPromoted
Description copied from interface:RoutingChangesObserver
Called when started replica is promoted to primary.- Specified by:
replicaPromoted
in interfaceRoutingChangesObserver
-