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 classJvmInfo.MemNested 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.ParamsNested 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.StringgetBootClassPath()booleangetBundledJdk()java.lang.StringgetClassPath()longgetConfiguredInitialHeapSize()longgetConfiguredMaxHeapSize()longgetG1RegionSize()java.lang.String[]getGcCollectors()java.lang.String[]getInputArguments()JvmInfo.MemgetMem()java.lang.String[]getMemoryPools()longgetPid()The process id.longgetStartTime()java.util.Map<java.lang.String,java.lang.String>getSystemProperties()java.lang.BooleangetUsingBundledJdk()java.lang.StringgetVersion()java.lang.StringgetVmName()java.lang.StringgetVmVendor()java.lang.StringgetVmVersion()static JvmInfojvmInfo()java.lang.StringonError()java.lang.StringonOutOfMemoryError()longpid()The process id.org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)java.lang.StringuseCompressedOops()The value of the JVM flag UseCompressedOops, if available otherwise "unknown".java.lang.StringuseG1GC()java.lang.StringuseSerialGC()java.lang.Stringversion()intversionUpdatePack()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, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContent
isFragment
-
Constructor Details
-
JvmInfo
- Throws:
java.io.IOException
-
-
Method Details
-
jvmInfo
-
writeTo
Description copied from interface:WriteableWrite 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:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-