org.elasticsearch.monitor.jvm
Class JvmStats
java.lang.Object
org.elasticsearch.monitor.jvm.JvmStats
- All Implemented Interfaces:
- java.io.Serializable, Streamable, ToXContent
public class JvmStats
- extends java.lang.Object
- implements Streamable, java.io.Serializable, ToXContent
- See Also:
- Serialized Form
Constructor Summary |
JvmStats(long timestamp,
long uptime)
|
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)
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 java.io.IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
java.io.IOException
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