Package org.elasticsearch.monitor.jvm
Class JvmInfo
java.lang.Object
org.elasticsearch.monitor.jvm.JvmInfo
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,ReportingService.Info
public class JvmInfo extends java.lang.Object implements ReportingService.Info
-
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
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.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()
boolean
getBundledJdk()
java.lang.String
getClassPath()
long
getConfiguredInitialHeapSize()
long
getConfiguredMaxHeapSize()
long
getG1RegionSize()
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.Boolean
getUsingBundledJdk()
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.org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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
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.ToXContent
isFragment
-
Constructor Details
-
JvmInfo
- Throws:
java.io.IOException
-
-
Method Details
-
jvmInfo
-
writeTo
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() -
versionUpdatePack
public int versionUpdatePack() -
getVmName
public java.lang.String getVmName() -
getVmVersion
public java.lang.String getVmVersion() -
getVmVendor
public java.lang.String getVmVendor() -
getBundledJdk
public boolean getBundledJdk() -
getUsingBundledJdk
public java.lang.Boolean getUsingBundledJdk() -
getStartTime
public long getStartTime() -
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() -
getG1RegionSize
public long getG1RegionSize() -
getGcCollectors
public java.lang.String[] getGcCollectors() -
getMemoryPools
public java.lang.String[] getMemoryPools() -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-