Package org.opennms.netmgt.jmx
Class JmxUtils
- java.lang.Object
-
- org.opennms.netmgt.jmx.JmxUtils
-
public final class JmxUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
convertToStringMap(Map<String,Object> map)
Converts the map, so that it only contains String values.static Map<String,String>
convertToUnmodifiableStringMap(Map<String,Object> map)
Converts the map, so that it only contains String values.static String
getCollectionDirectory(Map<String,String> map, String friendlyName, String serviceName)
static String
getGroupName(Map<String,String> map, Mbean mbean)
static MBeanServer
getMBeanServer(JmxConfigDao jmxConfigDao, String address, Map<String,String> parameters)
static Map<String,String>
getRuntimeAttributes(JmxConfigDao jmxConfigDao, String address, Map<String,String> parameters)
-
-
-
Method Detail
-
convertToUnmodifiableStringMap
public static Map<String,String> convertToUnmodifiableStringMap(Map<String,Object> map)
Converts the map, so that it only contains String values. All non String values will be removed (null values included). The returned map is not modifiable. If the input map is null, null is also returned.- Parameters:
map
- The map to be converted. May be null.- Returns:
- An unmodifiable map containing only String values from the input map, or null if input map was null.
-
convertToStringMap
public static Map<String,String> convertToStringMap(Map<String,Object> map)
Converts the map, so that it only contains String values. All non String values will be removed (null values included). The returned map is modifiable. If the input map is null, null is also returned.- Parameters:
map
- The map to be converted. May be null.- Returns:
- An unmodifiable map containing only String values from the input map, or null if input map was null.
-
getCollectionDirectory
public static String getCollectionDirectory(Map<String,String> map, String friendlyName, String serviceName)
-
getMBeanServer
public static MBeanServer getMBeanServer(JmxConfigDao jmxConfigDao, String address, Map<String,String> parameters)
-
-