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)
RoutingChangesObserver
shardInitialized
in interface RoutingChangesObserver
public void shardStarted(ShardRouting initializingShard, ShardRouting startedShard)
RoutingChangesObserver
shardStarted
in interface RoutingChangesObserver
public void relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)
RoutingChangesObserver
relocationStarted
in interface RoutingChangesObserver
public void unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)
RoutingChangesObserver
unassignedInfoUpdated
in interface RoutingChangesObserver
public void shardFailed(ShardRouting activeShard, UnassignedInfo unassignedInfo)
RoutingChangesObserver
shardFailed
in interface RoutingChangesObserver
public void relocationCompleted(ShardRouting removedRelocationSource)
RoutingChangesObserver
relocationCompleted
in interface RoutingChangesObserver
public void relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)
RoutingChangesObserver
relocationSourceRemoved
in interface RoutingChangesObserver
public void startedPrimaryReinitialized(ShardRouting startedPrimaryShard, ShardRouting initializedShard)
RoutingChangesObserver
startedPrimaryReinitialized
in interface RoutingChangesObserver
public void replicaPromoted(ShardRouting replicaShard)
RoutingChangesObserver
replicaPromoted
in interface RoutingChangesObserver