public class OsInfo extends java.lang.Object implements Writeable, ToXContentFragment
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
OsInfo(long refreshInterval,
int availableProcessors,
int allocatedProcessors,
java.lang.String name,
java.lang.String arch,
java.lang.String version) |
OsInfo(StreamInput in) |
Modifier and Type | Method and Description |
---|---|
int |
getAllocatedProcessors() |
java.lang.String |
getArch() |
int |
getAvailableProcessors() |
java.lang.String |
getName() |
long |
getRefreshInterval() |
java.lang.String |
getVersion() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public OsInfo(long refreshInterval, int availableProcessors, int allocatedProcessors, java.lang.String name, java.lang.String arch, java.lang.String version)
public OsInfo(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
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