public class RecoveryStats extends Object implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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 ToXContent
IOException
public static RecoveryStats readRecoveryStats(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.