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 class
JvmStats.BufferPool
static class
JvmStats.Classes
static class
JvmStats.GarbageCollector
static class
JvmStats.GarbageCollectors
static class
JvmStats.Mem
static class
JvmStats.MemoryPool
static class
JvmStats.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.Classes
getClasses()
JvmStats.GarbageCollectors
getGc()
JvmStats.Mem
getMem()
JvmStats.Threads
getThreads()
long
getTimestamp()
TimeValue
getUptime()
static JvmStats
jvmStats()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(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:Writeable
Write 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:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
-