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(ProjectId projectId, 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.repositories.RepositoryOperation
RepositoryOperation.ProjectRepoNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.repositories.RepositoryOperation
PROJECT_REPO_SERIALIZER -
Constructor Summary
ConstructorsConstructorDescriptionEntry(ProjectId projectId, String repoName, List<SnapshotId> snapshots, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state) Entry(ProjectId projectId, String repoName, List<SnapshotId> snapshots, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state, String uuid) Creates an instance of aEntryrecord class. -
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.Returns the value of theprojectIdrecord component.readFrom(StreamInput in) repoName()Returns the value of therepoNamerecord component.Name of the repository affected.longReturns the value of therepositoryStateIdrecord component.Returns the value of thesnapshotsrecord component.started()longReturns the value of thestartTimerecord 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.withAddedSnapshots(Collection<SnapshotId> newSnapshots) withRepoGen(long repoGen) withSnapshots(Collection<SnapshotId> snapshots) voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
Entry
public Entry(ProjectId projectId, String repoName, List<SnapshotId> snapshots, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state) -
Entry
public Entry(ProjectId projectId, String repoName, List<SnapshotId> snapshots, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state, String uuid) Creates an instance of aEntryrecord class.- Parameters:
projectId- the value for theprojectIdrecord componentrepoName- the value for therepoNamerecord componentsnapshots- the value for thesnapshotsrecord componentstartTime- the value for thestartTimerecord componentrepositoryStateId- the value for therepositoryStateIdrecord componentstate- the value for thestaterecord componentuuid- the value for theuuidrecord component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
started
-
withAddedSnapshots
-
withSnapshots
-
withRepoGen
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
projectId
Returns the value of theprojectIdrecord component.- Specified by:
projectIdin interfaceRepositoryOperation- Returns:
- the value of the
projectIdrecord component
-
repository
Description copied from interface:RepositoryOperationName of the repository affected.- Specified by:
repositoryin interfaceRepositoryOperation
-
repositoryStateId
public long repositoryStateId()Returns the value of therepositoryStateIdrecord component.- Specified by:
repositoryStateIdin interfaceRepositoryOperation- Returns:
- the value of the
repositoryStateIdrecord 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 therepoNamerecord component.- Returns:
- the value of the
repoNamerecord component
-
snapshots
Returns the value of thesnapshotsrecord component.- Returns:
- the value of the
snapshotsrecord component
-
startTime
public long startTime()Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-