Package org.elasticsearch.cluster
Class SnapshotDeletionsInProgress.Entry
java.lang.Object
org.elasticsearch.cluster.SnapshotDeletionsInProgress.Entry
- All Implemented Interfaces:
Writeable
,RepositoryOperation
- Enclosing class:
- SnapshotDeletionsInProgress
public static final class SnapshotDeletionsInProgress.Entry
extends Object
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
ConstructorDescriptionEntry(List<SnapshotId> snapshots, String repoName, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state)
Entry(StreamInput in)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
The start time in milliseconds for deleting the snapshots.int
hashCode()
Name of the repository affected.long
The repository state id at the time the operation began.started()
state()
toString()
uuid()
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(List<SnapshotId> snapshots, String repoName, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state) -
Entry
- Throws:
IOException
-
-
Method Details
-
started
-
withAddedSnapshots
-
withSnapshots
-
withRepoGen
-
state
-
uuid
-
getSnapshots
-
getStartTime
public long getStartTime()The start time in milliseconds for deleting the snapshots. -
equals
-
hashCode
public int hashCode() -
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()Description copied from interface:RepositoryOperation
The repository state id at the time the operation began.- Specified by:
repositoryStateId
in interfaceRepositoryOperation
-
toString
-