public class StackDefinedPropertyProvider extends Object implements PropertyProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
WRAPPED_METRICS_KEY
PropertyHelper/AbstractPropertyProvider expect map of maps,
that's why we wrap metrics into map
|
| Constructor and Description |
|---|
StackDefinedPropertyProvider(Resource.Type type,
JMXHostProvider jmxHostProvider,
MetricHostProvider metricHostProvider,
MetricsServiceProvider serviceProvider,
URLStreamProvider streamProvider,
String clusterPropertyId,
String hostPropertyId,
String componentPropertyId,
String resourceStatePropertyId,
PropertyProvider defaultJmxPropertyProvider,
PropertyProvider defaultGangliaPropertyProvider) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
checkPropertyIds(Set<String> propertyIds)
Check whether the set of given property ids is supported by this resource
provider.
|
static Map<String,PropertyInfo> |
getPropertyInfo(MetricDefinition def) |
static void |
init(com.google.inject.Injector injector) |
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.
|
public static final String WRAPPED_METRICS_KEY
public StackDefinedPropertyProvider(Resource.Type type, JMXHostProvider jmxHostProvider, MetricHostProvider metricHostProvider, MetricsServiceProvider serviceProvider, URLStreamProvider streamProvider, String clusterPropertyId, String hostPropertyId, String componentPropertyId, String resourceStatePropertyId, PropertyProvider defaultJmxPropertyProvider, PropertyProvider defaultGangliaPropertyProvider)
@Inject public static void init(com.google.inject.Injector injector)
public Set<Resource> populateResources(Set<Resource> resources, Request request, Predicate predicate) throws SystemException
PropertyProviderpopulateResources in interface 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 populatedpublic Set<String> checkPropertyIds(Set<String> propertyIds)
PropertyProvidercheckPropertyIds in interface PropertyProviderpublic static Map<String,PropertyInfo> getPropertyInfo(MetricDefinition def)
def - the metric definitionCopyright © 2022 Apache Software Foundation. All rights reserved.