public class RecoveryStats extends java.lang.Object implements ToXContentFragment, 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)
Set this object's fields from a StreamInput.
|
static RecoveryStats |
readRecoveryStats(StreamInput in) |
TimeValue |
throttleTime()
Total time recoveries waited due to throttling
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic 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 java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static RecoveryStats readRecoveryStats(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object