public static class RecoveryState.File extends Object implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
RecoveryState.File() |
RecoveryState.File(String name,
long length,
boolean reused) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
long |
length()
file length *
|
String |
name()
file name *
|
static RecoveryState.File |
readFile(StreamInput in) |
void |
readFrom(StreamInput in) |
long |
recovered()
number of bytes recovered for this file (so far).
|
boolean |
reused()
returns true if the file is reused from a local copy
|
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public RecoveryState.File()
public RecoveryState.File(String name, long length, boolean reused)
public String name()
public long length()
public long recovered()
public boolean reused()
public static RecoveryState.File readFile(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.