Package org.elasticsearch.snapshots
Class Snapshot
- java.lang.Object
-
- org.elasticsearch.snapshots.Snapshot
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description Snapshot(java.lang.String repository, SnapshotId snapshotId)Constructs a snapshot.Snapshot(StreamInput in)Constructs a snapshot from the stream input.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetRepository()Gets the repository name for the snapshot.SnapshotIdgetSnapshotId()Gets the snapshot id for the snapshot.inthashCode()java.lang.StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Constructor Detail
-
Snapshot
public Snapshot(java.lang.String repository, SnapshotId snapshotId)Constructs a snapshot.
-
Snapshot
public Snapshot(StreamInput in) throws java.io.IOException
Constructs a snapshot from the stream input.- Throws:
java.io.IOException
-
-
Method Detail
-
getRepository
public java.lang.String getRepository()
Gets the repository name for the snapshot.
-
getSnapshotId
public SnapshotId getSnapshotId()
Gets the snapshot id for the snapshot.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:WriteableWrite this into the StreamOutput.
-
-