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, SnapshotDeletionsInProgress.State state)
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.SnapshotDeletionsInProgress.Entry
started()
SnapshotDeletionsInProgress.State
state()
java.lang.String
toString()
java.lang.String
uuid()
SnapshotDeletionsInProgress.Entry
withAddedSnapshots(java.util.Collection<SnapshotId> newSnapshots)
SnapshotDeletionsInProgress.Entry
withRepoGen(long repoGen)
SnapshotDeletionsInProgress.Entry
withSnapshots(java.util.Collection<SnapshotId> snapshots)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Entry
public Entry(java.util.List<SnapshotId> snapshots, java.lang.String repoName, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state) -
Entry
- Throws:
java.io.IOException
-
-
Method Details
-
started
-
withAddedSnapshots
public SnapshotDeletionsInProgress.Entry withAddedSnapshots(java.util.Collection<SnapshotId> newSnapshots) -
withSnapshots
-
withRepoGen
-
state
-
uuid
public java.lang.String uuid() -
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
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-