Package org.elasticsearch.snapshots
Class RestoreService.RestoreInProgressUpdater
java.lang.Object
org.elasticsearch.cluster.routing.RoutingChangesObserver.AbstractRoutingChangesObserver
org.elasticsearch.snapshots.RestoreService.RestoreInProgressUpdater
- All Implemented Interfaces:
RoutingChangesObserver
- Enclosing class:
- RestoreService
public static class RestoreService.RestoreInProgressUpdater
extends RoutingChangesObserver.AbstractRoutingChangesObserver
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.routing.RoutingChangesObserver
RoutingChangesObserver.AbstractRoutingChangesObserver, RoutingChangesObserver.DelegatingRoutingChangesObserver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyChanges(RestoreInProgress oldRestore)
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
unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)
Called when an unassigned shard's unassigned information was updatedMethods inherited from class org.elasticsearch.cluster.routing.RoutingChangesObserver.AbstractRoutingChangesObserver
initializedReplicaReinitialized, relocationCompleted, relocationSourceRemoved, relocationStarted, replicaPromoted
-
Constructor Details
-
RestoreInProgressUpdater
public RestoreInProgressUpdater()
-
-
Method Details
-
shardStarted
Description copied from interface:RoutingChangesObserver
Called when an initializing shard is started.- Specified by:
shardStarted
in interfaceRoutingChangesObserver
- Overrides:
shardStarted
in classRoutingChangesObserver.AbstractRoutingChangesObserver
-
shardFailed
Description copied from interface:RoutingChangesObserver
Called when a shard is failed or cancelled.- Specified by:
shardFailed
in interfaceRoutingChangesObserver
- Overrides:
shardFailed
in classRoutingChangesObserver.AbstractRoutingChangesObserver
-
shardInitialized
Description copied from interface:RoutingChangesObserver
Called when unassigned shard is initialized. Does not include initializing relocation target shards.- Specified by:
shardInitialized
in interfaceRoutingChangesObserver
- Overrides:
shardInitialized
in classRoutingChangesObserver.AbstractRoutingChangesObserver
-
unassignedInfoUpdated
Description copied from interface:RoutingChangesObserver
Called when an unassigned shard's unassigned information was updated- Specified by:
unassignedInfoUpdated
in interfaceRoutingChangesObserver
- Overrides:
unassignedInfoUpdated
in classRoutingChangesObserver.AbstractRoutingChangesObserver
-
applyChanges
-