Package org.elasticsearch.monitor.jvm
Class JvmStats
java.lang.Object
org.elasticsearch.monitor.jvm.JvmStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class JvmStats extends java.lang.Object implements Writeable, ToXContentFragment
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJvmStats.BufferPoolstatic classJvmStats.Classesstatic classJvmStats.GarbageCollectorstatic classJvmStats.GarbageCollectorsstatic classJvmStats.Memstatic classJvmStats.MemoryPoolstatic classJvmStats.ThreadsNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description JvmStats(long timestamp, long uptime, JvmStats.Mem mem, JvmStats.Threads threads, JvmStats.GarbageCollectors gc, java.util.List<JvmStats.BufferPool> bufferPools, JvmStats.Classes classes)JvmStats(StreamInput in) -
Method Summary
Modifier and Type Method Description java.util.List<JvmStats.BufferPool>getBufferPools()JvmStats.ClassesgetClasses()JvmStats.GarbageCollectorsgetGc()JvmStats.MemgetMem()JvmStats.ThreadsgetThreads()longgetTimestamp()TimeValuegetUptime()static JvmStatsjvmStats()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
JvmStats
public JvmStats(long timestamp, long uptime, JvmStats.Mem mem, JvmStats.Threads threads, JvmStats.GarbageCollectors gc, java.util.List<JvmStats.BufferPool> bufferPools, JvmStats.Classes classes) -
JvmStats
- Throws:
java.io.IOException
-
-
Method Details
-
jvmStats
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
getTimestamp
public long getTimestamp() -
getUptime
-
getMem
-
getThreads
-
getGc
-
getBufferPools
-
getClasses
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-