Class RoutingChangesObserver.DelegatingRoutingChangesObserver
java.lang.Object
org.elasticsearch.cluster.routing.RoutingChangesObserver.DelegatingRoutingChangesObserver
- All Implemented Interfaces:
RoutingChangesObserver
- Enclosing interface:
- RoutingChangesObserver
public static class RoutingChangesObserver.DelegatingRoutingChangesObserver
extends Object
implements RoutingChangesObserver
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.routing.RoutingChangesObserver
RoutingChangesObserver.AbstractRoutingChangesObserver, RoutingChangesObserver.DelegatingRoutingChangesObserver
-
Constructor Summary
ConstructorDescriptionDelegatingRoutingChangesObserver(RoutingChangesObserver... routingChangesObservers)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)
Called when an initializing replica is reinitialized.void
relocationCompleted(ShardRouting removedRelocationSource)
Called on relocation source when relocation completes after relocation target is started.void
relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)
Called on replica relocation target when replica relocation source fails.void
relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)
Called when relocation of a started shard is initiated.void
replicaPromoted(ShardRouting replicaShard)
Called when started replica is promoted to primary.void
shardFailed(ShardRouting activeShard, 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.void
unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)
Called when an unassigned shard's unassigned information was updated
-
Constructor Details
-
DelegatingRoutingChangesObserver
-
-
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
Description copied from interface:RoutingChangesObserver
Called when relocation of a started shard is initiated.- Specified by:
relocationStarted
in interfaceRoutingChangesObserver
-
unassignedInfoUpdated
Description copied from interface:RoutingChangesObserver
Called when an unassigned shard's unassigned information was updated- Specified by:
unassignedInfoUpdated
in interfaceRoutingChangesObserver
-
shardFailed
Description copied from interface:RoutingChangesObserver
Called when a shard is failed or cancelled.- Specified by:
shardFailed
in interfaceRoutingChangesObserver
-
relocationCompleted
Description copied from interface:RoutingChangesObserver
Called on relocation source when relocation completes after relocation target is started.- Specified by:
relocationCompleted
in interfaceRoutingChangesObserver
-
relocationSourceRemoved
Description copied from interface:RoutingChangesObserver
Called on replica relocation target when replica relocation source fails. Promotes the replica relocation target to ordinary initializing shard.- Specified by:
relocationSourceRemoved
in interfaceRoutingChangesObserver
-
replicaPromoted
Description copied from interface:RoutingChangesObserver
Called when started replica is promoted to primary.- Specified by:
replicaPromoted
in interfaceRoutingChangesObserver
-
initializedReplicaReinitialized
public void initializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)Description copied from interface:RoutingChangesObserver
Called when an initializing replica is reinitialized. This happens when a primary relocation completes, which reinitializes all currently initializing replicas as their recovery source node changes- Specified by:
initializedReplicaReinitialized
in interfaceRoutingChangesObserver
-