|
@@ -295,14 +295,23 @@ public class JMXPropertyProvider extends AbstractPropertyProvider {
|
|
|
throws SystemException {
|
|
|
|
|
|
Set<String> ids = getRequestPropertyIds(request, predicate);
|
|
|
- Set<String> temporalIds = new HashSet<String>();
|
|
|
+ Set<String> unsupportedIds = new HashSet<String>();
|
|
|
+ String componentName = (String) resource.getPropertyValue(componentNamePropertyId);
|
|
|
+
|
|
|
+ if (getComponentMetrics().get(componentName) == null) {
|
|
|
+ // If there are no metrics defined for the given component then there is nothing to do.
|
|
|
+ return resource;
|
|
|
+ }
|
|
|
|
|
|
for (String id : ids) {
|
|
|
if (request.getTemporalInfo(id) != null) {
|
|
|
- temporalIds.add(id);
|
|
|
+ unsupportedIds.add(id);
|
|
|
+ }
|
|
|
+ if (!isSupportedPropertyId(componentName, id)) {
|
|
|
+ unsupportedIds.add(id);
|
|
|
}
|
|
|
}
|
|
|
- ids.removeAll(temporalIds);
|
|
|
+ ids.removeAll(unsupportedIds);
|
|
|
|
|
|
if (ids.isEmpty()) {
|
|
|
// no properties requested
|
|
@@ -317,13 +326,6 @@ public class JMXPropertyProvider extends AbstractPropertyProvider {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- String componentName = (String) resource.getPropertyValue(componentNamePropertyId);
|
|
|
-
|
|
|
- if (getComponentMetrics().get(componentName) == null) {
|
|
|
- // If there are no metrics defined for the given component then there is nothing to do.
|
|
|
- return resource;
|
|
|
- }
|
|
|
-
|
|
|
String clusterName = (String) resource.getPropertyValue(clusterNamePropertyId);
|
|
|
|
|
|
String port = getPort(clusterName, componentName);
|