public class GetStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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 ToXContent
IOException
public static GetStats readGetStats(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.