public class OsInfo extends Object implements Streamable, Serializable, ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
OsInfo.Cpu |
static class |
OsInfo.Mem |
static class |
OsInfo.Swap |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
int |
availableProcessors() |
OsInfo.Cpu |
cpu() |
int |
getAvailableProcessors() |
OsInfo.Cpu |
getCpu() |
OsInfo.Mem |
getMem() |
long |
getRefreshInterval() |
OsInfo.Swap |
getSwap() |
OsInfo.Mem |
mem() |
void |
readFrom(StreamInput in) |
static OsInfo |
readOsInfo(StreamInput in) |
long |
refreshInterval() |
OsInfo.Swap |
swap() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public long refreshInterval()
public long getRefreshInterval()
public int availableProcessors()
public int getAvailableProcessors()
public OsInfo.Cpu cpu()
public OsInfo.Cpu getCpu()
public OsInfo.Mem mem()
public OsInfo.Mem getMem()
public OsInfo.Swap swap()
public OsInfo.Swap getSwap()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static OsInfo readOsInfo(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2016. All rights reserved.