public class RecoveryStats extends Object implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
RecoveryStats() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(RecoveryStats recoveryStats) |
void |
addThrottleTime(long nanos) |
void |
addTotals(RecoveryStats recoveryStats) |
int |
currentAsSource()
Number of ongoing recoveries for which a shard serves as a source
|
int |
currentAsTarget()
Number of ongoing recoveries for which a shard serves as a target
|
void |
decCurrentAsSource() |
void |
decCurrentAsTarget() |
void |
incCurrentAsSource() |
void |
incCurrentAsTarget() |
void |
readFrom(StreamInput in) |
static RecoveryStats |
readRecoveryStats(StreamInput in) |
TimeValue |
throttleTime()
Total time recoveries waited due to throttling
|
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public void add(RecoveryStats recoveryStats)
public void addTotals(RecoveryStats recoveryStats)
public int currentAsSource()
public int currentAsTarget()
public TimeValue throttleTime()
public void incCurrentAsTarget()
public void decCurrentAsTarget()
public void incCurrentAsSource()
public void decCurrentAsSource()
public void addThrottleTime(long nanos)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static RecoveryStats readRecoveryStats(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.