public class GetStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
GetStats() |
GetStats(long existsCount,
long existsTimeInMillis,
long missingCount,
long missingTimeInMillis,
long current) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(GetStats stats) |
void |
addTotals(GetStats stats) |
long |
current() |
long |
getCount() |
long |
getExistsCount() |
TimeValue |
getExistsTime() |
long |
getExistsTimeInMillis() |
long |
getMissingCount() |
TimeValue |
getMissingTime() |
long |
getMissingTimeInMillis() |
TimeValue |
getTime() |
long |
getTimeInMillis() |
void |
readFrom(StreamInput in) |
static GetStats |
readGetStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public GetStats()
public GetStats(long existsCount,
long existsTimeInMillis,
long missingCount,
long missingTimeInMillis,
long current)
public void add(GetStats stats)
public void addTotals(GetStats stats)
public long getCount()
public long getTimeInMillis()
public TimeValue getTime()
public long getExistsCount()
public long getExistsTimeInMillis()
public TimeValue getExistsTime()
public long getMissingCount()
public long getMissingTimeInMillis()
public TimeValue getMissingTime()
public long current()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static GetStats readGetStats(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.