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.Params
EMPTY_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 ToXContent
IOException
public static OsInfo readOsInfo(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–2015. All rights reserved.