org.elasticsearch.monitor.os
Class OsInfo

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

public class OsInfo
extends Object
implements Streamable, Serializable, ToXContent

See Also:
Serialized Form

Nested Class Summary
static class OsInfo.Cpu
           
static class OsInfo.Mem
           
static class OsInfo.Swap
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Method Summary
 OsInfo.Cpu cpu()
           
 OsInfo.Cpu getCpu()
           
 OsInfo.Mem getMem()
           
 long getRefreshInterval()
           
 OsInfo.Swap getSwap()
           
 OsInfo.Mem mem()
           
 void readFrom(StreamInput in)
           
static OsInfo readOsInfo(StreamInput in)
           
 long refreshInterval()
           
 OsInfo.Swap swap()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

refreshInterval

public long refreshInterval()

getRefreshInterval

public long getRefreshInterval()

cpu

public OsInfo.Cpu cpu()

getCpu

public OsInfo.Cpu getCpu()

mem

public OsInfo.Mem mem()

getMem

public OsInfo.Mem getMem()

swap

public OsInfo.Swap swap()

getSwap

public OsInfo.Swap getSwap()

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException

readOsInfo

public static OsInfo readOsInfo(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.