public class OsInfo extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
int |
getAllocatedProcessors() |
String |
getArch() |
int |
getAvailableProcessors() |
String |
getName() |
long |
getRefreshInterval() |
String |
getVersion() |
void |
readFrom(StreamInput in) |
static OsInfo |
readOsInfo(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public long getRefreshInterval()
public int getAvailableProcessors()
public int getAllocatedProcessors()
public String getName()
public String getArch()
public String getVersion()
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–2017. All rights reserved.