public class OsInfo extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
int |
getAllocatedProcessors() |
java.lang.String |
getArch() |
int |
getAvailableProcessors() |
java.lang.String |
getName() |
long |
getRefreshInterval() |
java.lang.String |
getVersion() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static OsInfo |
readOsInfo(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public long getRefreshInterval()
public int getAvailableProcessors()
public int getAllocatedProcessors()
public java.lang.String getName()
public java.lang.String getArch()
public java.lang.String getVersion()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static OsInfo readOsInfo(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException