public static class RecoveryState.Index extends RecoveryState.Timer implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static long |
UNKNOWN |
startNanoTime, startTime, stopTime, timeEMPTY_PARAMS| Constructor and Description |
|---|
RecoveryState.Index() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileDetail(String name,
long length,
boolean reused) |
void |
addRecoveredBytesToFile(String name,
long bytes) |
void |
addSourceThrottling(long timeInNanos) |
void |
addTargetThrottling(long timeInNanos) |
List<RecoveryState.File> |
fileDetails() |
void |
readFrom(StreamInput in) |
long |
recoveredBytes()
total number of bytes recovered so far, including both existing and reused
|
float |
recoveredBytesPercent()
percent of bytes recovered out of total files bytes *to be* recovered
|
int |
recoveredFileCount()
number of file that were recovered (excluding on ongoing files)
|
float |
recoveredFilesPercent()
percent of recovered (i.e., not reused) files out of the total files to be recovered
|
void |
reset() |
long |
reusedBytes() |
int |
reusedFileCount() |
TimeValue |
sourceThrottling() |
TimeValue |
targetThrottling() |
String |
toString() |
long |
totalBytes()
total number of bytes in th shard
|
int |
totalFileCount()
total number of files that are part of this recovery, both re-used and recovered
|
long |
totalRecoverBytes()
total bytes of files to be recovered (potentially not yet done)
|
int |
totalRecoverFiles()
total number of files to be recovered (potentially not yet done)
|
long |
totalReuseBytes() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
updateVersion(long version) |
long |
version() |
void |
writeTo(StreamOutput out) |
public static final long UNKNOWN
public List<RecoveryState.File> fileDetails()
public void reset()
reset in class RecoveryState.Timerpublic void addFileDetail(String name, long length, boolean reused)
public void addRecoveredBytesToFile(String name, long bytes)
public long version()
public void addSourceThrottling(long timeInNanos)
public void addTargetThrottling(long timeInNanos)
public TimeValue sourceThrottling()
public TimeValue targetThrottling()
public int totalFileCount()
public int totalRecoverFiles()
public int recoveredFileCount()
public float recoveredFilesPercent()
public long totalBytes()
public long recoveredBytes()
public long totalRecoverBytes()
public long totalReuseBytes()
public float recoveredBytesPercent()
public int reusedFileCount()
public long reusedBytes()
public void updateVersion(long version)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class RecoveryState.TimerIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class RecoveryState.TimerIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.