Module org.elasticsearch.server
Package org.elasticsearch.cluster
Record Class SnapshotDeletionsInProgress.Entry
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.SnapshotDeletionsInProgress.Entry
- All Implemented Interfaces:
Writeable
,RepositoryOperation
- Enclosing class:
SnapshotDeletionsInProgress
public static record SnapshotDeletionsInProgress.Entry(String repoName, List<SnapshotId> snapshots, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state, String uuid)
extends Record
implements Writeable, RepositoryOperation
A class representing a snapshot deletion request entry in the cluster state.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionEntry
(String repoName, List<SnapshotId> snapshots, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state) Entry
(String repoName, List<SnapshotId> snapshots, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state, String uuid) Creates an instance of aEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.readFrom
(StreamInput in) repoName()
Returns the value of therepoName
record component.Name of the repository affected.long
Returns the value of therepositoryStateId
record component.Returns the value of thesnapshots
record component.started()
long
Returns the value of thestartTime
record component.state()
Returns the value of thestate
record component.final String
toString()
Returns a string representation of this record class.uuid()
Returns the value of theuuid
record component.withAddedSnapshots
(Collection<SnapshotId> newSnapshots) withRepoGen
(long repoGen) withSnapshots
(Collection<SnapshotId> snapshots) void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
Entry
public Entry(String repoName, List<SnapshotId> snapshots, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state) -
Entry
public Entry(String repoName, List<SnapshotId> snapshots, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state, String uuid) Creates an instance of aEntry
record class.- Parameters:
repoName
- the value for therepoName
record componentsnapshots
- the value for thesnapshots
record componentstartTime
- the value for thestartTime
record componentrepositoryStateId
- the value for therepositoryStateId
record componentstate
- the value for thestate
record componentuuid
- the value for theuuid
record component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
started
-
withAddedSnapshots
-
withSnapshots
-
withRepoGen
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
repository
Description copied from interface:RepositoryOperation
Name of the repository affected.- Specified by:
repository
in interfaceRepositoryOperation
-
repositoryStateId
public long repositoryStateId()Returns the value of therepositoryStateId
record component.- Specified by:
repositoryStateId
in interfaceRepositoryOperation
- Returns:
- the value of the
repositoryStateId
record component
-
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 '=='. -
repoName
Returns the value of therepoName
record component.- Returns:
- the value of the
repoName
record component
-
snapshots
Returns the value of thesnapshots
record component.- Returns:
- the value of the
snapshots
record component
-
startTime
public long startTime()Returns the value of thestartTime
record component.- Returns:
- the value of the
startTime
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-
uuid
Returns the value of theuuid
record component.- Returns:
- the value of the
uuid
record component
-