public static class ClusterStatsNodes.OsStats extends Object implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
OsStats() |
Modifier and Type | Method and Description |
---|---|
void |
addNodeInfo(NodeInfo nodeInfo) |
ByteSizeValue |
getAvailableMemory() |
int |
getAvailableProcessors() |
com.carrotsearch.hppc.ObjectIntOpenHashMap<OsInfo.Cpu> |
getCpus() |
void |
readFrom(StreamInput in) |
static ClusterStatsNodes.OsStats |
readOsStats(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public void addNodeInfo(NodeInfo nodeInfo)
public int getAvailableProcessors()
public ByteSizeValue getAvailableMemory()
public com.carrotsearch.hppc.ObjectIntOpenHashMap<OsInfo.Cpu> getCpus()
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 static ClusterStatsNodes.OsStats readOsStats(StreamInput in) throws IOException
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.