Package org.elasticsearch.cluster
Class RestoreInProgress.Entry
- java.lang.Object
-
- org.elasticsearch.cluster.RestoreInProgress.Entry
-
- Enclosing class:
- RestoreInProgress
public static class RestoreInProgress.Entry extends Object
Restore metadata
-
-
Constructor Summary
Constructors Constructor Description Entry(String uuid, Snapshot snapshot, RestoreInProgress.State state, List<String> indices, ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)Creates new restore metadata
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()List<String>indices()Returns list of indicesImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus>shards()Returns list of shards that being restore and their statusSnapshotsnapshot()Returns snapshotRestoreInProgress.Statestate()Returns current restore stateStringuuid()Returns restore uuid
-
-
-
Constructor Detail
-
Entry
public Entry(String uuid, Snapshot snapshot, RestoreInProgress.State state, List<String> indices, ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)
Creates new restore metadata- Parameters:
uuid- uuid of the restoresnapshot- snapshotstate- current state of the restore processindices- list of indices being restoredshards- map of shards being restored to their current restore status
-
-
Method Detail
-
uuid
public String uuid()
Returns restore uuid- Returns:
- restore uuid
-
snapshot
public Snapshot snapshot()
Returns snapshot- Returns:
- snapshot
-
shards
public ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards()
Returns list of shards that being restore and their status- Returns:
- list of shards
-
state
public RestoreInProgress.State state()
Returns current restore state- Returns:
- restore state
-
-