Package org.elasticsearch.cluster
Class RestoreInProgress.Entry
java.lang.Object
org.elasticsearch.cluster.RestoreInProgress.Entry
- Enclosing class:
- RestoreInProgress
public static class RestoreInProgress.Entry
extends java.lang.Object
Restore metadata
-
Constructor Summary
Constructors Constructor Description Entry(java.lang.String uuid, Snapshot snapshot, RestoreInProgress.State state, java.util.List<java.lang.String> indices, ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)Creates new restore metadata -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()java.util.List<java.lang.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 statejava.lang.Stringuuid()Returns restore uuid
-
Constructor Details
-
Entry
public Entry(java.lang.String uuid, Snapshot snapshot, RestoreInProgress.State state, java.util.List<java.lang.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 Details
-
uuid
public java.lang.String uuid()Returns restore uuid- Returns:
- restore uuid
-
snapshot
Returns snapshot- Returns:
- snapshot
-
shards
Returns list of shards that being restore and their status- Returns:
- list of shards
-
state
Returns current restore state- Returns:
- restore state
-
indices
public java.util.List<java.lang.String> indices()Returns list of indices- Returns:
- list of indices
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-