String clusterName = (String) resource.getPropertyValue(clusterNamePropertyId);
String port = getPort(clusterName, componentName);
if (port == null) {
throw new SystemException(
"Unable to get JMX metrics. No port value for " + componentName, null);
}
String hostName = getHost(resource, clusterName, componentName);
if (hostName == null) {
throw new SystemException(
"Unable to get JMX metrics. No host name for " + componentName, null);
}
String protocol = getJMXProtocol(clusterName, componentName);
try {