public static class RoutingChangesObserver.DelegatingRoutingChangesObserver extends java.lang.Object implements RoutingChangesObserver
RoutingChangesObserver.AbstractRoutingChangesObserver, RoutingChangesObserver.DelegatingRoutingChangesObserver| Constructor and Description |
|---|
DelegatingRoutingChangesObserver(RoutingChangesObserver... routingChangesObservers) |
| Modifier and Type | Method and Description |
|---|---|
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 |
startedPrimaryReinitialized(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.
|
void |
unassignedInfoUpdated(ShardRouting unassignedShard,
UnassignedInfo newUnassignedInfo)
Called when an unassigned shard's unassigned information was updated
|
public DelegatingRoutingChangesObserver(RoutingChangesObserver... routingChangesObservers)
public void shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)
RoutingChangesObservershardInitialized in interface RoutingChangesObserverpublic void shardStarted(ShardRouting initializingShard, ShardRouting startedShard)
RoutingChangesObservershardStarted in interface RoutingChangesObserverpublic void relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)
RoutingChangesObserverrelocationStarted in interface RoutingChangesObserverpublic void unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)
RoutingChangesObserverunassignedInfoUpdated in interface RoutingChangesObserverpublic void shardFailed(ShardRouting activeShard, UnassignedInfo unassignedInfo)
RoutingChangesObservershardFailed in interface RoutingChangesObserverpublic void relocationCompleted(ShardRouting removedRelocationSource)
RoutingChangesObserverrelocationCompleted in interface RoutingChangesObserverpublic void relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)
RoutingChangesObserverrelocationSourceRemoved in interface RoutingChangesObserverpublic void startedPrimaryReinitialized(ShardRouting startedPrimaryShard, ShardRouting initializedShard)
RoutingChangesObserverstartedPrimaryReinitialized in interface RoutingChangesObserverpublic void replicaPromoted(ShardRouting replicaShard)
RoutingChangesObserverreplicaPromoted in interface RoutingChangesObserver