public static class OsStats.Cpu extends java.lang.Object implements Streamable
Modifier and Type | Method and Description |
---|---|
double[] |
getLoadAverage() |
short |
getPercent() |
static OsStats.Cpu |
readCpu(StreamInput in) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public static OsStats.Cpu readCpu(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
public short getPercent()
public double[] getLoadAverage()