public static class ClusterStatsNodes.ProcessStats extends Object implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ClusterStatsNodes.ProcessStats() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeStats(NodeStats nodeStats) |
long |
getAvgOpenFileDescriptors() |
int |
getCpuPercent()
Cpu usage in percentages - 100 is 1 core.
|
long |
getMaxOpenFileDescriptors() |
long |
getMinOpenFileDescriptors() |
void |
readFrom(StreamInput in) |
static ClusterStatsNodes.ProcessStats |
readStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public void addNodeStats(NodeStats nodeStats)
public int getCpuPercent()
public long getAvgOpenFileDescriptors()
public long getMaxOpenFileDescriptors()
public long getMinOpenFileDescriptors()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic static ClusterStatsNodes.ProcessStats readStats(StreamInput in) throws IOException
IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.