org.rhq.plugins.jmx
Class ParentDefinedJMXServerNamingUtility
java.lang.Object
org.rhq.plugins.jmx.ParentDefinedJMXServerNamingUtility
public class ParentDefinedJMXServerNamingUtility
- extends Object
A simple utility class to extract the name of a JMX server from the parent resource's plugin configuration.
- Author:
- Lukas Krejci
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_CHILD_JMX_SERVER_NAME
public static final String PROPERTY_CHILD_JMX_SERVER_NAME
- See Also:
- Constant Field Values
ParentDefinedJMXServerNamingUtility
public ParentDefinedJMXServerNamingUtility()
getJVMName
public static String getJVMName(ResourceDiscoveryContext<?> context)
- Checks if the parent resource's plugin configuration contains a property called
PROPERTY_CHILD_JMX_SERVER_NAME.
If such property exists and its value is non-empty, its value is returned. Otherwise the name of the provided
resource type is returned.
- Parameters:
context - the discovery context to get the parent plugin configuration and current resource type from.
- Returns:
- the name that can be used for the JVM
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.