java.lang.Object
org.elasticsearch.monitor.jvm.GcNames
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getByGcName
(String gcName, String defaultName) Resolves the GC type by the GC name provided byMemoryManagerMXBean.getName()
static String
getByMemoryPoolName
(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 fromMemoryPoolMXBean
defaultName
- 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
defaultName
if no match is found
-
getByGcName
Resolves the GC type by the GC name provided byMemoryManagerMXBean.getName()
- Parameters:
gcName
- the name of the GC fromGarbageCollectorMXBean
defaultName
- the name to return if the GC name does not match any known GC type- Returns:
- GC type corresponding to the GC name or
defaultName
if no match is found
-