public abstract class GangliaPropertyProvider extends MetricsPropertyProvider
clusterNamePropertyId, componentNamePropertyId, configuration, hostNamePropertyId, hostProvider, metricsPaddingMethod, questionMarkPattern, streamProvider
Constructor and Description |
---|
GangliaPropertyProvider(Map<String,Map<String,PropertyInfo>> componentPropertyInfoMap,
URLStreamProvider streamProvider,
ComponentSSLConfiguration configuration,
MetricHostProvider hostProvider,
String clusterNamePropertyId,
String hostNamePropertyId,
String componentNamePropertyId) |
Modifier and Type | Method and Description |
---|---|
protected String |
getComponentNamePropertyId()
Get the component name property id.
|
protected abstract Set<String> |
getGangliaClusterNames(Resource resource,
String clusterName)
Get the ganglia cluster name for the given resource.
|
protected String |
getHostNamePropertyId()
Get the host name property id.
|
StreamProvider |
getStreamProvider()
Get the stream provider.
|
Set<Resource> |
populateResourcesWithProperties(Set<Resource> resources,
Request request,
Set<String> propertyIds)
Delegate implementation of populating resources to concrete providers.
|
createInstance, getComponentName, getHostName, getSetString, populateResources
checkAuthorizationForMetrics, checkPropertyCategory, getClustersNameFromResources, getClustersResourceId, getComponentMetrics, getPropertyInfoMap, getResourceTypeFromResources, getValue, isSupportedPropertyId, substituteArgument, updateComponentMetricMap, updatePropertyInfo, updatePropertyInfoMap
checkCategory, checkConfigPropertyIds, checkPropertyIds, containsArguments, getCategoryIds, getPropertyIds, getRegexEntry, getRegexGroups, getRequestPropertyIds, isPatternKey, isPropertyCategoryRequested, isPropertyEntryRequested, isPropertyRequested, setResourceProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPropertyIds
public GangliaPropertyProvider(Map<String,Map<String,PropertyInfo>> componentPropertyInfoMap, URLStreamProvider streamProvider, ComponentSSLConfiguration configuration, MetricHostProvider hostProvider, String clusterNamePropertyId, String hostNamePropertyId, String componentNamePropertyId)
public Set<Resource> populateResourcesWithProperties(Set<Resource> resources, Request request, Set<String> propertyIds) throws SystemException
MetricsPropertyProvider
populateResourcesWithProperties
in class MetricsPropertyProvider
resources
- @Resourcerequest
- @RequestpropertyIds
- Set of idsSystemException
protected abstract Set<String> getGangliaClusterNames(Resource resource, String clusterName)
resource
- the resourceprotected String getComponentNamePropertyId()
protected String getHostNamePropertyId()
public StreamProvider getStreamProvider()
Copyright © 2022 Apache Software Foundation. All rights reserved.