Streamable, ToXContent, ToXContentObjectpublic static class RecoveryState.File extends java.lang.Object implements ToXContentObject, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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, waitisFragmentpublic 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.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object