Class JmxUtil
- java.lang.Object
-
- org.apache.jackrabbit.oak.commons.jmx.JmxUtil
-
public final class JmxUtil extends Object
Utility methods related to JMX
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringquoteValueIfRequired(String unquotedValue)Checks if the passed value string can be used as is as part of JMXObjectNameIf it cannot be used then it would return a quoted string which is then safe to be used as part of ObjectName.
-
-
-
Method Detail
-
quoteValueIfRequired
public static String quoteValueIfRequired(String unquotedValue)
Checks if the passed value string can be used as is as part of JMXObjectNameIf it cannot be used then it would return a quoted string which is then safe to be used as part of ObjectName.This is meant to avoid unnecessary quoting of value
- Parameters:
unquotedValue- to quote if required- Returns:
- passed value or quoted value if required
-
-