Class RecoveryState.Index
java.lang.Object
org.elasticsearch.indices.recovery.RecoveryState.Timer
org.elasticsearch.indices.recovery.RecoveryState.Index
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
- Enclosing class:
- RecoveryState
public static class RecoveryState.Index extends RecoveryState.Timer implements ToXContentFragment, Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields Modifier and Type Field Description static longUNKNOWNFields inherited from class org.elasticsearch.indices.recovery.RecoveryState.Timer
startNanoTime, startTime, stopTime, time -
Constructor Summary
Constructors Constructor Description Index()Index(StreamInput in) -
Method Summary
Modifier and Type Method Description voidaddFileDetail(java.lang.String name, long length, boolean reused)voidaddRecoveredBytesToFile(java.lang.String name, long bytes)voidaddSourceThrottling(long timeInNanos)voidaddTargetThrottling(long timeInNanos)java.util.List<RecoveryState.File>fileDetails()RecoveryState.FilegetFileDetails(java.lang.String dest)longrecoveredBytes()total number of bytes recovered so far, including both existing and reusedfloatrecoveredBytesPercent()percent of bytes recovered out of total files bytes *to be* recoveredintrecoveredFileCount()number of file that were recovered (excluding on ongoing files)floatrecoveredFilesPercent()percent of recovered (i.e., not reused) files out of the total files to be recoveredvoidreset()longreusedBytes()intreusedFileCount()TimeValuesourceThrottling()TimeValuetargetThrottling()java.lang.StringtoString()longtotalBytes()total number of bytes in th shardinttotalFileCount()total number of files that are part of this recovery, both re-used and recoveredlongtotalRecoverBytes()total bytes of files to be recovered (potentially not yet done)inttotalRecoverFiles()total number of files to be recovered (potentially not yet done)XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.indices.recovery.RecoveryState.Timer
getStartNanoTime, start, startTime, stop, stopTime, time
-
Field Details
-
UNKNOWN
public static final long UNKNOWN- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classRecoveryState.Timer- Throws:
java.io.IOException
-
fileDetails
-
reset
public void reset()- Overrides:
resetin classRecoveryState.Timer
-
addFileDetail
public void addFileDetail(java.lang.String name, long length, boolean reused) -
addRecoveredBytesToFile
public void addRecoveredBytesToFile(java.lang.String name, long bytes) -
addSourceThrottling
public void addSourceThrottling(long timeInNanos) -
addTargetThrottling
public void addTargetThrottling(long timeInNanos) -
sourceThrottling
-
targetThrottling
-
totalFileCount
public int totalFileCount()total number of files that are part of this recovery, both re-used and recovered -
totalRecoverFiles
public int totalRecoverFiles()total number of files to be recovered (potentially not yet done) -
recoveredFileCount
public int recoveredFileCount()number of file that were recovered (excluding on ongoing files) -
recoveredFilesPercent
public float recoveredFilesPercent()percent of recovered (i.e., not reused) files out of the total files to be recovered -
totalBytes
public long totalBytes()total number of bytes in th shard -
recoveredBytes
public long recoveredBytes()total number of bytes recovered so far, including both existing and reused -
totalRecoverBytes
public long totalRecoverBytes()total bytes of files to be recovered (potentially not yet done) -
recoveredBytesPercent
public float recoveredBytesPercent()percent of bytes recovered out of total files bytes *to be* recovered -
reusedFileCount
public int reusedFileCount() -
reusedBytes
public long reusedBytes() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
getFileDetails
-