public class PlatformMBeanUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
JVM_MAJOR_VERSION |
Modifier and Type | Method and Description |
---|---|
static String |
escapeMBeanName(String toEscape) |
static org.jboss.dmr.ModelNode |
getDetypedMemoryUsage(MemoryUsage memoryUsage)
Utility for converting
MemoryUsage to a detyped form. |
static org.jboss.dmr.ModelNode |
getDetypedThreadInfo(ThreadInfo threadInfo,
boolean includeBlockedTime)
Utility for converting
ThreadInfo to a detyped form. |
static Object |
getMBeanAttribute(ObjectName objectName,
String attribute) |
static String |
getObjectNameStringWithNameKey(String base,
String escapedValue) |
static ObjectName |
getObjectNameWithNameKey(String base,
String escapedValue) |
static String |
unescapeMBeanValue(String toUnescape) |
public static String getObjectNameStringWithNameKey(String base, String escapedValue)
public static ObjectName getObjectNameWithNameKey(String base, String escapedValue) throws OperationFailedException
OperationFailedException
public static Object getMBeanAttribute(ObjectName objectName, String attribute) throws OperationFailedException
OperationFailedException
public static org.jboss.dmr.ModelNode getDetypedMemoryUsage(MemoryUsage memoryUsage)
MemoryUsage
to a detyped form.memoryUsage
- the memory usage data objectpublic static org.jboss.dmr.ModelNode getDetypedThreadInfo(ThreadInfo threadInfo, boolean includeBlockedTime)
ThreadInfo
to a detyped form.threadInfo
- the thread information data objectincludeBlockedTime
- whether the PlatformMBeanConstants.BLOCKED_TIME
attribute is supportedCopyright © 2023 JBoss by Red Hat. All rights reserved.