org.rhq.core.domain.util
Class ResourceTypeUtility

java.lang.Object
  extended by org.rhq.core.domain.util.ResourceTypeUtility

public abstract class ResourceTypeUtility
extends Object

A set of utility methods for working with ResourceTypes.

Since:
4.4

Method Summary
static MeasurementDefinition getMeasurementDefinition(ResourceType type, String metricName)
           
static Set<MeasurementDefinition> getMeasurementDefinitions(ResourceType type, MeasurementDefinitionFilter filter)
          Returns the set of MeasurementDefinitions defined by the given Resource type, which are accepted by the specified filter.
static OperationDefinition getOperationDefinition(ResourceType type, String operationName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMeasurementDefinitions

public static Set<MeasurementDefinition> getMeasurementDefinitions(ResourceType type,
                                                                   MeasurementDefinitionFilter filter)
Returns the set of MeasurementDefinitions defined by the given Resource type, which are accepted by the specified filter. If the filter is null, all of the type's MeasurementDefinitions will be returned.

Parameters:
type - the Resource type
filter - the filter; may be null
Returns:
the set of MeasurementDefinition defined by the given Resource type, which are accepted by the specified filter, or, if the filter is null, all of the type's MeasurementDefinitions

getMeasurementDefinition

public static MeasurementDefinition getMeasurementDefinition(ResourceType type,
                                                             String metricName)

getOperationDefinition

public static OperationDefinition getOperationDefinition(ResourceType type,
                                                         String operationName)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.