org.elasticsearch.monitor.os
Class OsStats

java.lang.Object
  extended by org.elasticsearch.monitor.os.OsStats
All Implemented Interfaces:
Serializable, Streamable, ToXContent

public class OsStats
extends Object
implements Streamable, Serializable, ToXContent

See Also:
Serialized Form

Nested Class Summary
static class OsStats.Cpu
           
static class OsStats.Mem
           
static class OsStats.Swap
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
static double[] EMPTY_LOAD
           
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Method Summary
 OsStats.Cpu cpu()
           
 OsStats.Cpu getCpu()
           
 double[] getLoadAverage()
           
 OsStats.Mem getMem()
           
 OsStats.Swap getSwap()
           
 long getTimestamp()
           
 TimeValue getUptime()
           
 double[] loadAverage()
           
 OsStats.Mem mem()
           
 void readFrom(StreamInput in)
           
static OsStats readOsStats(StreamInput in)
           
 OsStats.Swap swap()
           
 long timestamp()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 TimeValue uptime()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_LOAD

public static final double[] EMPTY_LOAD
Method Detail

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 XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException

readOsStats

public static OsStats readOsStats(StreamInput in)
                           throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.