public class CircuitBreakerStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
CircuitBreakerStats(String name,
long limit,
long estimated,
double overhead,
long trippedCount) |
Modifier and Type | Method and Description |
---|---|
long |
getEstimated() |
long |
getLimit() |
String |
getName() |
double |
getOverhead() |
long |
getTrippedCount() |
void |
readFrom(StreamInput in) |
static CircuitBreakerStats |
readOptionalCircuitBreakerStats(StreamInput in) |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public CircuitBreakerStats(String name, long limit, long estimated, double overhead, long trippedCount)
public String getName()
public long getLimit()
public long getEstimated()
public long getTrippedCount()
public double getOverhead()
public static CircuitBreakerStats readOptionalCircuitBreakerStats(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
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.