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 boolean
equals(java.lang.Object o)
int
hashCode()
java.util.List<java.lang.String>
indices()
Returns list of indicesImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus>
shards()
Returns list of shards that being restore and their statusSnapshot
snapshot()
Returns snapshotRestoreInProgress.State
state()
Returns current restore statejava.lang.String
uuid()
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-