org.elasticsearch.monitor.jvm
Class JvmStats

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

public class JvmStats
extends java.lang.Object
implements Streamable, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
JvmStats(long timestamp, long uptime, long memoryHeapCommitted, long memoryHeapUsed, long memoryNonHeapCommitted, long memoryNonHeapUsed, int threadCount, int peakThreadCount, long gcCollectionCount, long gcCollectionTime)
           
 
Method Summary
 long gcCollectionCount()
           
 TimeValue gcCollectionTime()
           
static JvmStats jvmStats()
           
 SizeValue memoryHeapCommitted()
           
 SizeValue memoryHeapUsed()
           
 SizeValue memoryNonHeapCommitted()
           
 SizeValue memoryNonHeapUsed()
           
 int peakThreadCount()
           
 void readFrom(StreamInput in)
           
static JvmStats readJvmStats(StreamInput in)
           
 int threadCount()
           
 long timestamp()
           
 long 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,
                long memoryHeapCommitted,
                long memoryHeapUsed,
                long memoryNonHeapCommitted,
                long memoryNonHeapUsed,
                int threadCount,
                int peakThreadCount,
                long gcCollectionCount,
                long gcCollectionTime)
Method Detail

jvmStats

public static JvmStats jvmStats()

timestamp

public long timestamp()

uptime

public long uptime()

memoryHeapCommitted

public SizeValue memoryHeapCommitted()

memoryHeapUsed

public SizeValue memoryHeapUsed()

memoryNonHeapCommitted

public SizeValue memoryNonHeapCommitted()

memoryNonHeapUsed

public SizeValue memoryNonHeapUsed()

threadCount

public int threadCount()

peakThreadCount

public int peakThreadCount()

gcCollectionCount

public long gcCollectionCount()

gcCollectionTime

public TimeValue gcCollectionTime()

readJvmStats

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