java.lang.Object
org.elasticsearch.monitor.jvm.GcNames
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetByGcName(String gcName, String defaultName) Resolves the GC type by the GC name provided byMemoryManagerMXBean.getName()static StringgetByMemoryPoolName(String poolName, String defaultName) Resolves the memory area name by the memory pool name provided byMemoryPoolMXBean.getName()
-
Field Details
-
YOUNG
- See Also:
-
OLD
- See Also:
-
SURVIVOR
- See Also:
-
-
Method Details
-
getByMemoryPoolName
Resolves the memory area name by the memory pool name provided byMemoryPoolMXBean.getName()- Parameters:
poolName- the name of the memory pool fromMemoryPoolMXBeandefaultName- the name to return if the pool name does not match any known memory area- Returns:
- memory area name corresponding to the pool name or
defaultNameif no match is found
-
getByGcName
Resolves the GC type by the GC name provided byMemoryManagerMXBean.getName()- Parameters:
gcName- the name of the GC fromGarbageCollectorMXBeandefaultName- the name to return if the GC name does not match any known GC type- Returns:
- GC type corresponding to the GC name or
defaultNameif no match is found
-