Module org.elasticsearch.server
Package org.elasticsearch.cluster
Record Class RestoreInProgress.Entry
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.RestoreInProgress.Entry
- Enclosing class:
RestoreInProgress
public static record RestoreInProgress.Entry(String uuid, Snapshot snapshot, RestoreInProgress.State state, boolean quiet, List<String> indices, Map<ShardId,RestoreInProgress.ShardRestoreStatus> shards)
extends Record
Restore metadata
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(String uuid, Snapshot snapshot, RestoreInProgress.State state, boolean quiet, List<String> indices, Map<ShardId, RestoreInProgress.ShardRestoreStatus> shards) Creates new restore metadata -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.indices()Returns the value of theindicesrecord component.booleanquiet()Returns the value of thequietrecord component.shards()Returns the value of theshardsrecord component.snapshot()Returns the value of thesnapshotrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Entry
public Entry(String uuid, Snapshot snapshot, RestoreInProgress.State state, boolean quiet, List<String> indices, Map<ShardId, RestoreInProgress.ShardRestoreStatus> shards) Creates new restore metadata- Parameters:
uuid- uuid of the restoresnapshot- snapshotstate- current state of the restore processquiet-trueif logging of the start and completion of the snapshot restore should be atDEBUGlog level, else it should be atINFOlog levelindices- list of indices being restoredshards- map of shards being restored to their current restore status
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
snapshot
Returns the value of thesnapshotrecord component.- Returns:
- the value of the
snapshotrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
quiet
public boolean quiet()Returns the value of thequietrecord component.- Returns:
- the value of the
quietrecord component
-
indices
Returns the value of theindicesrecord component.- Returns:
- the value of the
indicesrecord component
-
shards
Returns the value of theshardsrecord component.- Returns:
- the value of the
shardsrecord component
-