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
Constructors Constructor Description RestoreInProgressUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestoreInProgress
applyChanges(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 updated-
Methods inherited from class org.elasticsearch.cluster.routing.RoutingChangesObserver.AbstractRoutingChangesObserver
initializedReplicaReinitialized, relocationCompleted, relocationSourceRemoved, relocationStarted, replicaPromoted, startedPrimaryReinitialized
-
-
-
-
Method Detail
-
shardStarted
public void shardStarted(ShardRouting initializingShard, ShardRouting startedShard)
Description copied from interface:RoutingChangesObserver
Called when an initializing shard is started.- Specified by:
shardStarted
in interfaceRoutingChangesObserver
- Overrides:
shardStarted
in classRoutingChangesObserver.AbstractRoutingChangesObserver
-
shardFailed
public void shardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo)
Description copied from interface:RoutingChangesObserver
Called when a shard is failed or cancelled.- Specified by:
shardFailed
in interfaceRoutingChangesObserver
- Overrides:
shardFailed
in classRoutingChangesObserver.AbstractRoutingChangesObserver
-
shardInitialized
public void shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)
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
public void unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)
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
public RestoreInProgress applyChanges(RestoreInProgress oldRestore)
-
-