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 java.lang.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
Constructors Constructor Description Entry(java.util.List<SnapshotId> snapshots, java.lang.String repoName, long startTime, long repositoryStateId)
Entry(StreamInput in)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.List<SnapshotId>
getSnapshots()
long
getStartTime()
The start time in milliseconds for deleting the snapshots.int
hashCode()
java.lang.String
repository()
Name of the repository affected.long
repositoryStateId()
The repository state id at the time the operation began.void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Constructor Details
-
Entry
public Entry(java.util.List<SnapshotId> snapshots, java.lang.String repoName, long startTime, long repositoryStateId) -
Entry
- Throws:
java.io.IOException
-
-
Method Details
-
getSnapshots
-
getStartTime
public long getStartTime()The start time in milliseconds for deleting the snapshots. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
repository
public java.lang.String 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
-