Class RoutingNodesChangedObserver
java.lang.Object
org.elasticsearch.cluster.routing.allocation.RoutingNodesChangedObserver
- All Implemented Interfaces:
RoutingChangesObserver
Records if changes were made to
RoutingNodes during an allocation round.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.routing.RoutingChangesObserver
RoutingChangesObserver.AbstractRoutingChangesObserver, RoutingChangesObserver.DelegatingRoutingChangesObserver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)Called when an initializing replica is reinitialized.booleanReturns whether changes were madevoidrelocationCompleted(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 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.voidunassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)Called when an unassigned shard's unassigned information was updated
-
Constructor Details
-
RoutingNodesChangedObserver
public RoutingNodesChangedObserver()
-
-
Method Details
-
isChanged
public boolean isChanged()Returns whether changes were made -
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
Description copied from interface:RoutingChangesObserverCalled when relocation of a started shard is initiated.- Specified by:
relocationStartedin interfaceRoutingChangesObserver
-
unassignedInfoUpdated
Description copied from interface:RoutingChangesObserverCalled when an unassigned shard's unassigned information was updated- Specified by:
unassignedInfoUpdatedin interfaceRoutingChangesObserver
-
shardFailed
Description copied from interface:RoutingChangesObserverCalled when a shard is failed or cancelled.- Specified by:
shardFailedin interfaceRoutingChangesObserver
-
relocationCompleted
Description copied from interface:RoutingChangesObserverCalled on relocation source when relocation completes after relocation target is started.- Specified by:
relocationCompletedin interfaceRoutingChangesObserver
-
relocationSourceRemoved
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
-
replicaPromoted
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
-