Package org.elasticsearch.monitor.jvm
Class JvmInfo
- java.lang.Object
-
- org.elasticsearch.monitor.jvm.JvmInfo
-
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentFragment
public class JvmInfo extends java.lang.Object implements Writeable, ToXContentFragment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JvmInfo.Mem
-
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 JvmInfo(StreamInput in)
-
Method Summary
Modifier and Type Method Description java.lang.String
getBootClassPath()
java.lang.String
getClassPath()
long
getConfiguredInitialHeapSize()
long
getConfiguredMaxHeapSize()
java.lang.String[]
getGcCollectors()
java.lang.String[]
getInputArguments()
JvmInfo.Mem
getMem()
java.lang.String[]
getMemoryPools()
long
getPid()
The process id.long
getStartTime()
java.util.Map<java.lang.String,java.lang.String>
getSystemProperties()
java.lang.String
getVersion()
java.lang.String
getVmName()
java.lang.String
getVmVendor()
java.lang.String
getVmVersion()
static JvmInfo
jvmInfo()
java.lang.String
onError()
java.lang.String
onOutOfMemoryError()
long
pid()
The process id.XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
java.lang.String
useCompressedOops()
The value of the JVM flag UseCompressedOops, if available otherwise "unknown".java.lang.String
useG1GC()
java.lang.String
useSerialGC()
java.lang.String
version()
int
versionAsInteger()
int
versionUpdatePack()
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
-
JvmInfo
public JvmInfo(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
jvmInfo
public static JvmInfo jvmInfo()
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.
-
pid
public long pid()
The process id.
-
getPid
public long getPid()
The process id.
-
version
public java.lang.String version()
-
getVersion
public java.lang.String getVersion()
-
versionAsInteger
public int versionAsInteger()
-
versionUpdatePack
public int versionUpdatePack()
-
getVmName
public java.lang.String getVmName()
-
getVmVersion
public java.lang.String getVmVersion()
-
getVmVendor
public java.lang.String getVmVendor()
-
getStartTime
public long getStartTime()
-
getMem
public JvmInfo.Mem getMem()
-
getInputArguments
public java.lang.String[] getInputArguments()
-
getBootClassPath
public java.lang.String getBootClassPath()
-
getClassPath
public java.lang.String getClassPath()
-
getSystemProperties
public java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
-
getConfiguredInitialHeapSize
public long getConfiguredInitialHeapSize()
-
getConfiguredMaxHeapSize
public long getConfiguredMaxHeapSize()
-
onError
public java.lang.String onError()
-
onOutOfMemoryError
public java.lang.String onOutOfMemoryError()
-
useCompressedOops
public java.lang.String useCompressedOops()
The value of the JVM flag UseCompressedOops, if available otherwise "unknown". The value "unknown" indicates that an attempt was made to obtain the value of the flag on this JVM and the attempt failed.- Returns:
- the value of the JVM flag UseCompressedOops or "unknown"
-
useG1GC
public java.lang.String useG1GC()
-
useSerialGC
public java.lang.String useSerialGC()
-
getGcCollectors
public java.lang.String[] getGcCollectors()
-
getMemoryPools
public java.lang.String[] getMemoryPools()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
-