org.elasticsearch.monitor.jvm
Class JvmStats
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JvmStats
public JvmStats(long timestamp,
long uptime,
long memoryHeapCommitted,
long memoryHeapUsed,
long memoryNonHeapCommitted,
long memoryNonHeapUsed,
int threadCount,
int peakThreadCount,
long gcCollectionCount,
long gcCollectionTime)
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