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
ConstructorsConstructorDescriptionSnapshot(String repository, SnapshotId snapshotId)Constructs a snapshot.Snapshot(StreamInput in)Constructs a snapshot from the stream input. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the repository name for the snapshot.Gets the snapshot id for the snapshot.inthashCode()toString()voidwriteTo(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:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-