org.elasticsearch.monitor.jvm
Class JvmStats

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

public class JvmStats
extends Object
implements Streamable, Serializable, ToXContent

See Also:
Serialized Form

Nested Class Summary
static class JvmStats.BufferPool
           
static class JvmStats.GarbageCollector
           
static class JvmStats.GarbageCollectors
           
static class JvmStats.Mem
           
static class JvmStats.MemoryPool
           
static class JvmStats.Threads
           
 
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
 
Constructor Summary
JvmStats(long timestamp, long uptime)
           
 
Method Summary
 JvmStats.GarbageCollectors gc()
           
 JvmStats.GarbageCollectors getGc()
           
 JvmStats.Mem getMem()
           
 JvmStats.Threads getThreads()
           
 long getTimestamp()
           
 TimeValue getUptime()
           
static boolean isLastGcEnabled()
           
static JvmStats jvmStats()
           
 JvmStats.Mem mem()
           
 void readFrom(StreamInput in)
           
static JvmStats readJvmStats(StreamInput in)
           
 JvmStats.Threads threads()
           
 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
 

Constructor Detail

JvmStats

public JvmStats(long timestamp,
                long uptime)
Method Detail

isLastGcEnabled

public static boolean isLastGcEnabled()

jvmStats

public static JvmStats jvmStats()

timestamp

public long timestamp()

getTimestamp

public long getTimestamp()

uptime

public TimeValue uptime()

getUptime

public TimeValue getUptime()

mem

public JvmStats.Mem mem()

getMem

public JvmStats.Mem getMem()

threads

public JvmStats.Threads threads()

getThreads

public JvmStats.Threads getThreads()

gc

public JvmStats.GarbageCollectors gc()

getGc

public JvmStats.GarbageCollectors getGc()

toXContent

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

readJvmStats

public static JvmStats readJvmStats(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.