Package org.elasticsearch.cluster
Class SnapshotDeletionsInProgress.Entry
org.elasticsearch.cluster.SnapshotDeletionsInProgress.Entry
- All Implemented Interfaces:
Writeable
,RepositoryOperation
- Enclosing class:
- SnapshotDeletionsInProgress
public static final class SnapshotDeletionsInProgress.Entry
extends
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
ConstructorDescription<SnapshotId> snapshots, repoName, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state)
Entry(StreamInput in)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
o)
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()
<SnapshotId> newSnapshots)
withRepoGen(long repoGen)
<SnapshotId> snapshots)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.
, , , , , , ,
-
Constructor Details
-
Entry
public Entry(<SnapshotId> snapshots, repoName, long startTime, long repositoryStateId, SnapshotDeletionsInProgress.State state) -
Entry
- Throws:
-
-
Method Details
-
started
-
withAddedSnapshots
public <SnapshotId> newSnapshots) -
withSnapshots
public <SnapshotId> snapshots) -
withRepoGen
-
state
-
uuid
public uuid() -
getSnapshots
-
getStartTime
public long getStartTime()The start time in milliseconds for deleting the snapshots. -
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
repository
public 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 toString()- Overrides:
in class
-