Package org.elasticsearch.snapshots
Class Snapshot
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
ConstructorDescriptionrepository, SnapshotId snapshotId)
Constructs a snapshot.Snapshot(StreamInput in)
Constructs a snapshot from the stream input. -
Method Summary
Modifier and TypeMethodDescriptionboolean
o)
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.Methods inherited from class java.lang.
, , , , , , ,
-
Constructor Details
-
Snapshot
Constructs a snapshot. -
Snapshot
Constructs a snapshot from the stream input.- Throws:
-
-
Method Details
-
getRepository
public getRepository()Gets the repository name for the snapshot. -
getSnapshotId
Gets the snapshot id for the snapshot. -
toString
public toString()- Overrides:
in class
-
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.
-