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 java.lang.Object implements RoutingChangesObserver
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.routing.RoutingChangesObserver
RoutingChangesObserver.AbstractRoutingChangesObserver, RoutingChangesObserver.DelegatingRoutingChangesObserver
-
-
Constructor Summary
Constructors Constructor Description DelegatingRoutingChangesObserver(RoutingChangesObserver... routingChangesObservers)
-
Method Summary
Modifier and Type Method Description voidinitializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)Called when an initializing replica is reinitialized.voidrelocationCompleted(ShardRouting removedRelocationSource)Called on relocation source when relocation completes after relocation target is started.voidrelocationSourceRemoved(ShardRouting removedReplicaRelocationSource)Called on replica relocation target when replica relocation source fails.voidrelocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)Called when relocation of a started shard is initiated.voidreplicaPromoted(ShardRouting replicaShard)Called when started replica is promoted to primary.voidshardFailed(ShardRouting activeShard, 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.voidstartedPrimaryReinitialized(ShardRouting startedPrimaryShard, ShardRouting initializedShard)Called on started primary shard after it has been promoted from replica to primary and is reinitialized due to shadow replicas.voidunassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)Called when an unassigned shard's unassigned information was updated
-
-
-
Constructor Detail
-
DelegatingRoutingChangesObserver
public DelegatingRoutingChangesObserver(RoutingChangesObserver... routingChangesObservers)
-
-
Method Detail
-
shardInitialized
public void shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)
Description copied from interface:RoutingChangesObserverCalled when unassigned shard is initialized. Does not include initializing relocation target shards.- Specified by:
shardInitializedin interfaceRoutingChangesObserver
-
shardStarted
public void shardStarted(ShardRouting initializingShard, ShardRouting startedShard)
Description copied from interface:RoutingChangesObserverCalled when an initializing shard is started.- Specified by:
shardStartedin interfaceRoutingChangesObserver
-
relocationStarted
public void relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)
Description copied from interface:RoutingChangesObserverCalled when relocation of a started shard is initiated.- Specified by:
relocationStartedin interfaceRoutingChangesObserver
-
unassignedInfoUpdated
public void unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)
Description copied from interface:RoutingChangesObserverCalled when an unassigned shard's unassigned information was updated- Specified by:
unassignedInfoUpdatedin interfaceRoutingChangesObserver
-
shardFailed
public void shardFailed(ShardRouting activeShard, UnassignedInfo unassignedInfo)
Description copied from interface:RoutingChangesObserverCalled when a shard is failed or cancelled.- Specified by:
shardFailedin interfaceRoutingChangesObserver
-
relocationCompleted
public void relocationCompleted(ShardRouting removedRelocationSource)
Description copied from interface:RoutingChangesObserverCalled on relocation source when relocation completes after relocation target is started.- Specified by:
relocationCompletedin interfaceRoutingChangesObserver
-
relocationSourceRemoved
public void relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)
Description copied from interface:RoutingChangesObserverCalled on replica relocation target when replica relocation source fails. Promotes the replica relocation target to ordinary initializing shard.- Specified by:
relocationSourceRemovedin interfaceRoutingChangesObserver
-
startedPrimaryReinitialized
public void startedPrimaryReinitialized(ShardRouting startedPrimaryShard, ShardRouting initializedShard)
Description copied from interface:RoutingChangesObserverCalled on started primary shard after it has been promoted from replica to primary and is reinitialized due to shadow replicas.- Specified by:
startedPrimaryReinitializedin interfaceRoutingChangesObserver
-
replicaPromoted
public void replicaPromoted(ShardRouting replicaShard)
Description copied from interface:RoutingChangesObserverCalled when started replica is promoted to primary.- Specified by:
replicaPromotedin interfaceRoutingChangesObserver
-
initializedReplicaReinitialized
public void initializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)
Description copied from interface:RoutingChangesObserverCalled 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:
initializedReplicaReinitializedin interfaceRoutingChangesObserver
-
-