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
ConstructorsConstructorDescriptionEntry(List<SnapshotId> snapshots, String repoName, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state)Entry(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe start time in milliseconds for deleting the snapshots.inthashCode()Name of the repository affected.longThe repository state id at the time the operation began.started()state()toString()uuid()withAddedSnapshots(Collection<SnapshotId> newSnapshots)withRepoGen(long repoGen)withSnapshots(Collection<SnapshotId> snapshots)voidwriteTo(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:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
repository
Description copied from interface:RepositoryOperationName of the repository affected.- Specified by:
repositoryin interfaceRepositoryOperation
-
repositoryStateId
public long repositoryStateId()Description copied from interface:RepositoryOperationThe repository state id at the time the operation began.- Specified by:
repositoryStateIdin interfaceRepositoryOperation
-
toString
-