public static class RecoveryState.File extends Objectimplements ToXContent , Streamable
ToXContent.DelegatingMapParams , ToXContent.MapParams , ToXContent.Params EMPTY_PARAMS| Constructor and Description |
|---|
File()
|
File(String
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object
|
int |
hashCode()
|
long |
length()
file length *
|
String |
name()
file name *
|
static RecoveryState |
readFile(StreamInput
|
void |
readFrom(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
|
String |
toString()
|
XContentBuilder |
toXContent(XContentBuilder
|
void |
writeTo(StreamOutput
|
public File()
public File(Stringname, long length, boolean reused)
public Stringname()
public long length()
public long recovered()
public boolean reused()
public static RecoveryState.File readFile(StreamInput in) throws IOException
IOException
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
IOException
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
IOException
public XContentBuildertoXContent(XContentBuilder builder, ToXContent .Params params) throws IOException
toXContent in interface
ToXContent
IOException
public boolean equals(Objectobj)
public int hashCode()
public StringtoString()