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.Threads-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
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
public JvmStats(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
jvmStats
public static JvmStats jvmStats()
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:WriteableWrite this into the StreamOutput.
-
getTimestamp
public long getTimestamp()
-
getUptime
public TimeValue getUptime()
-
getMem
public JvmStats.Mem getMem()
-
getThreads
public JvmStats.Threads getThreads()
-
getGc
public JvmStats.GarbageCollectors getGc()
-
getBufferPools
public java.util.List<JvmStats.BufferPool> getBufferPools()
-
getClasses
public JvmStats.Classes getClasses()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
-