public class PercolateStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
PercolateStats()
Noop constructor for serialazation purposes.
|
Modifier and Type | Method and Description |
---|---|
void |
add(PercolateStats percolate) |
long |
getCount() |
long |
getCurrent() |
ByteSizeValue |
getMemorySize() |
long |
getMemorySizeInBytes() |
long |
getNumQueries() |
TimeValue |
getTime() |
long |
getTimeInMillis() |
void |
readFrom(StreamInput in) |
static PercolateStats |
readPercolateStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public PercolateStats()
public long getCount()
public long getTimeInMillis()
public TimeValue getTime()
public long getCurrent()
public long getNumQueries()
public long getMemorySizeInBytes()
-1
, but this used to return the total size the loaded queries take in
memory, but this is disabled now because the size estimation was too expensive cpu wise. This will be enabled
again when a cheaper size estimation can be found.public ByteSizeValue getMemorySize()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void add(PercolateStats percolate)
public static PercolateStats readPercolateStats(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–2017. All rights reserved.