public static class RestoreInProgress.Entry
extends java.lang.Object
Constructor and Description |
---|
Entry(SnapshotId snapshotId,
RestoreInProgress.State state,
java.util.List<java.lang.String> indices,
ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)
Creates new restore metadata
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.List<java.lang.String> |
indices()
Returns list of indices
|
ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> |
shards()
Returns list of shards that being restore and their status
|
SnapshotId |
snapshotId()
Returns snapshot id
|
RestoreInProgress.State |
state()
Returns current restore state
|
public Entry(SnapshotId snapshotId, RestoreInProgress.State state, java.util.List<java.lang.String> indices, ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)
snapshotId
- snapshot idstate
- current state of the restore processindices
- list of indices being restoredshards
- map of shards being restored to their current restore statuspublic SnapshotId snapshotId()
public ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards()
public RestoreInProgress.State state()
public java.util.List<java.lang.String> indices()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object