Package org.elasticsearch.snapshots
Class Snapshot
java.lang.Object
org.elasticsearch.snapshots.Snapshot
- All Implemented Interfaces:
Writeable
Basic information about a snapshot - a SnapshotId and the repository that the snapshot belongs to.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionSnapshot(String repository, SnapshotId snapshotId)
Constructs a snapshot.Snapshot(StreamInput in)
Constructs a snapshot from the stream input. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the repository name for the snapshot.Gets the snapshot id for the snapshot.int
hashCode()
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Constructor Details
-
Snapshot
Constructs a snapshot. -
Snapshot
Constructs a snapshot from the stream input.- Throws:
IOException
-
-
Method Details
-
getRepository
Gets the repository name for the snapshot. -
getSnapshotId
Gets the snapshot id for the snapshot. -
toString
-
equals
-
hashCode
public int hashCode() -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-