Streamable
, ToXContent
, ToXContentObject
public static class RecoveryState.File extends java.lang.Object implements ToXContentObject, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor | Description |
---|---|
File() |
|
File(java.lang.String name,
long length,
boolean reused) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
long |
length() |
file length *
|
java.lang.String |
name() |
file name *
|
static RecoveryState.File |
readFile(StreamInput in) |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
long |
recovered() |
number of bytes recovered for this file (so far).
|
boolean |
reused() |
returns true if the file is reused from a local copy
|
java.lang.String |
toString() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public File()
public File(java.lang.String name, long length, boolean reused)
public java.lang.String name()
public long length()
public long recovered()
public boolean reused()
public static RecoveryState.File readFile(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object