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 Object implements Writeable, ToXContentFragment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJvmInfo.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBootClassPath()booleangetBundledJdk()StringgetClassPath()longgetConfiguredInitialHeapSize()longgetConfiguredMaxHeapSize()String[]getGcCollectors()String[]getInputArguments()JvmInfo.MemgetMem()String[]getMemoryPools()longgetPid()The process id.longgetStartTime()Map<String,String>getSystemProperties()BooleangetUsingBundledJdk()StringgetVersion()StringgetVmName()StringgetVmVendor()StringgetVmVersion()static JvmInfojvmInfo()StringonError()StringonOutOfMemoryError()longpid()The process id.XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)StringuseCompressedOops()The value of the JVM flag UseCompressedOops, if available otherwise "unknown".StringuseG1GC()StringuseSerialGC()Stringversion()intversionAsInteger()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, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
JvmInfo
public JvmInfo(StreamInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
jvmInfo
public static JvmInfo jvmInfo()
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
pid
public long pid()
The process id.
-
getPid
public long getPid()
The process id.
-
version
public String version()
-
getVersion
public String getVersion()
-
versionAsInteger
public int versionAsInteger()
-
versionUpdatePack
public int versionUpdatePack()
-
getVmName
public String getVmName()
-
getVmVersion
public String getVmVersion()
-
getVmVendor
public String getVmVendor()
-
getBundledJdk
public boolean getBundledJdk()
-
getUsingBundledJdk
public Boolean getUsingBundledJdk()
-
getStartTime
public long getStartTime()
-
getMem
public JvmInfo.Mem getMem()
-
getInputArguments
public String[] getInputArguments()
-
getBootClassPath
public String getBootClassPath()
-
getClassPath
public String getClassPath()
-
getConfiguredInitialHeapSize
public long getConfiguredInitialHeapSize()
-
getConfiguredMaxHeapSize
public long getConfiguredMaxHeapSize()
-
onError
public String onError()
-
onOutOfMemoryError
public String onOutOfMemoryError()
-
useCompressedOops
public 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 String useG1GC()
-
useSerialGC
public String useSerialGC()
-
getGcCollectors
public String[] getGcCollectors()
-
getMemoryPools
public String[] getMemoryPools()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-