public abstract class GangliaPropertyProvider extends AbstractPropertyProvider
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
GangliaPropertyProvider(Map<String,Map<String,PropertyInfo>> componentPropertyInfoMap,
StreamProvider streamProvider,
ComponentSSLConfiguration configuration,
GangliaHostProvider hostProvider,
String clusterNamePropertyId,
String hostNamePropertyId,
String componentNamePropertyId) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getComponentName(Resource resource)
Get the component name for the given resource.
|
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 abstract String |
getHostName(Resource resource)
Get the host name for the given resource.
|
protected String |
getHostNamePropertyId()
Get the host name property id.
|
StreamProvider |
getStreamProvider()
Get the stream provider.
|
Set<Resource> |
populateResources(Set<Resource> resources,
Request request,
Predicate predicate)
Populate the given set of resource with any properties that this property
provider can provide and return a populated set of resources.
|
getComponentMetrics, getPropertyInfoMap, getPropertyInfoMap, substituteArgument, updateComponentMetricMapcheckConfigPropertyIds, checkPropertyIds, containsArguments, getPropertyIds, getRegexGroups, getRegExpKey, getRequestPropertyIds, isPatternKey, setResourcePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPropertyIdspublic GangliaPropertyProvider(Map<String,Map<String,PropertyInfo>> componentPropertyInfoMap, StreamProvider streamProvider, ComponentSSLConfiguration configuration, GangliaHostProvider hostProvider, String clusterNamePropertyId, String hostNamePropertyId, String componentNamePropertyId)
public Set<Resource> populateResources(Set<Resource> resources, Request request, Predicate predicate) throws SystemException
PropertyProviderresources - the resources to be populatedrequest - the request object which defines the desired set of propertiespredicate - the predicate object which filters which resources are returnedSystemException - thrown if resources cannot be populatedprotected abstract String getHostName(Resource resource)
resource - the resourceprotected abstract String getComponentName(Resource resource)
resource - the resourceprotected abstract Set<String> getGangliaClusterNames(Resource resource, String clusterName)
resource - the resourceprotected String getComponentNamePropertyId()
protected String getHostNamePropertyId()
public StreamProvider getStreamProvider()
Copyright © 2016. All rights reserved.