org.elasticsearch.monitor.os
Class OsStats
java.lang.Object
org.elasticsearch.monitor.os.OsStats
- All Implemented Interfaces:
- java.io.Serializable, Streamable, ToXContent
public class OsStats
- extends java.lang.Object
- implements Streamable, java.io.Serializable, ToXContent
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_LOAD
public static final double[] EMPTY_LOAD
timestamp
public long timestamp()
getTimestamp
public long getTimestamp()
loadAverage
public double[] loadAverage()
getLoadAverage
public double[] getLoadAverage()
uptime
public TimeValue uptime()
getUptime
public TimeValue getUptime()
cpu
public OsStats.Cpu cpu()
getCpu
public OsStats.Cpu getCpu()
mem
public OsStats.Mem mem()
getMem
public OsStats.Mem getMem()
swap
public OsStats.Swap swap()
getSwap
public OsStats.Swap getSwap()
toXContent
public void toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
java.io.IOException
readOsStats
public static OsStats readOsStats(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException