public final class SnapshotId extends java.lang.Object implements java.lang.Comparable<SnapshotId>, Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
SnapshotId(StreamInput in)
Constructs a new snapshot from a input stream
|
SnapshotId(java.lang.String name,
java.lang.String uuid)
Constructs a new snapshot
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SnapshotId other) |
boolean |
equals(java.lang.Object o) |
static SnapshotId |
fromXContent(XContentParser parser) |
java.lang.String |
getName()
Returns snapshot name
|
java.lang.String |
getUUID()
Returns the snapshot UUID
|
int |
hashCode() |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public SnapshotId(java.lang.String name, java.lang.String uuid)
name
- snapshot nameuuid
- snapshot uuidpublic SnapshotId(StreamInput in) throws java.io.IOException
in
- input streamjava.io.IOException
public java.lang.String getName()
public java.lang.String getUUID()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(SnapshotId other)
compareTo
in interface java.lang.Comparable<SnapshotId>
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static SnapshotId fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException