public static class ClusterStatsNodes.Counts extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ClusterStatsNodes.Counts() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeInfo(NodeInfo nodeInfo) |
int |
getClient() |
int |
getDataOnly() |
int |
getMasterData() |
int |
getMasterOnly() |
int |
getTotal() |
static ClusterStatsNodes.Counts |
readCounts(StreamInput in) |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public void addNodeInfo(NodeInfo nodeInfo)
public int getTotal()
public int getMasterOnly()
public int getDataOnly()
public int getMasterData()
public int getClient()
public static ClusterStatsNodes.Counts readCounts(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.