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, time
EMPTY_PARAMS
Constructor and Description |
---|
Index() |
Modifier and Type | Method and Description |
---|---|
void |
addFileDetail(java.lang.String name,
long length,
boolean reused) |
void |
addRecoveredBytesToFile(java.lang.String name,
long bytes) |
void |
addSourceThrottling(long timeInNanos) |
void |
addTargetThrottling(long timeInNanos) |
java.util.List<RecoveryState.File> |
fileDetails() |
RecoveryState.File |
getFileDetails(java.lang.String dest) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
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() |
java.lang.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)
Write this object's fields to a StreamOutput.
|
start, startTime, stop, stopTime, time
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public static final long UNKNOWN
public java.util.List<RecoveryState.File> fileDetails()
public void reset()
reset
in class RecoveryState.Timer
public void addFileDetail(java.lang.String name, long length, boolean reused)
public void addRecoveredBytesToFile(java.lang.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 java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class RecoveryState.Timer
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class RecoveryState.Timer
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public RecoveryState.File getFileDetails(java.lang.String dest)