public class OsInfo extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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 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–2016. All rights reserved.