public static class RecoveryState.File extends Object implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2017. All rights reserved.