public class ParentDefinedJMXServerNamingUtility extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_CHILD_JMX_SERVER_NAME |
| Constructor and Description |
|---|
ParentDefinedJMXServerNamingUtility() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getJVMName(ResourceDiscoveryContext<?> context)
Checks if the parent resource's plugin configuration contains a property called
PROPERTY_CHILD_JMX_SERVER_NAME. |
public static final String PROPERTY_CHILD_JMX_SERVER_NAME
public static String getJVMName(ResourceDiscoveryContext<?> context)
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.context - the discovery context to get the parent plugin configuration and current resource type from.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.