public static class RestoreInProgress.Entry
extends java.lang.Object
Constructor | Description |
---|---|
Entry(Snapshot snapshot,
RestoreInProgress.State state,
java.util.List<java.lang.String> indices,
ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards) |
Creates new restore metadata
|
Modifier and Type | Method | 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
|
Snapshot |
snapshot() |
Returns snapshot
|
RestoreInProgress.State |
state() |
Returns current restore state
|
public Entry(Snapshot snapshot, RestoreInProgress.State state, java.util.List<java.lang.String> indices, ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)
snapshot
- snapshotstate
- current state of the restore processindices
- list of indices being restoredshards
- map of shards being restored to their current restore statuspublic Snapshot snapshot()
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