public interface RoutingChangesObserver
RoutingNodes
during an allocation round.Modifier and Type | Interface and Description |
---|---|
static class |
RoutingChangesObserver.AbstractRoutingChangesObserver
Abstract implementation of
RoutingChangesObserver that does not take any action. |
static class |
RoutingChangesObserver.DelegatingRoutingChangesObserver |
Modifier and Type | Method and Description |
---|---|
void |
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 failedShard,
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
|
void shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)
void shardStarted(ShardRouting initializingShard, ShardRouting startedShard)
void relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)
void unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)
void shardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo)
void relocationCompleted(ShardRouting removedRelocationSource)
void relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)
void startedPrimaryReinitialized(ShardRouting startedPrimaryShard, ShardRouting initializedShard)
void replicaPromoted(ShardRouting replicaShard)
void initializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)