public interface MetricPropertyProviderFactory
MetricPropertyProviderFactory is used to provide injected
instances of PropertyProviders which retrieve metrics.| Modifier and Type | Method and Description |
|---|---|
JMXPropertyProvider |
createJMXPropertyProvider(Map<String,Map<String,PropertyInfo>> componentMetrics,
StreamProvider streamProvider,
JMXHostProvider jmxHostProvider,
MetricHostProvider metricHostProvider,
String clusterNamePropertyId,
String hostNamePropertyId,
String componentNamePropertyId,
String statePropertyId)
Gets a Guice-inject instance of a
JMXPropertyProvider. |
RestMetricsPropertyProvider |
createRESTMetricsPropertyProvider(Map<String,String> metricsProperties,
Map<String,Map<String,PropertyInfo>> componentMetrics,
StreamProvider streamProvider,
MetricHostProvider metricHostProvider,
String clusterNamePropertyId,
String hostNamePropertyId,
String componentNamePropertyId,
String statePropertyId,
String componentName)
/** Create a REST property provider.
|
JMXPropertyProvider createJMXPropertyProvider(Map<String,Map<String,PropertyInfo>> componentMetrics, StreamProvider streamProvider, JMXHostProvider jmxHostProvider, MetricHostProvider metricHostProvider, String clusterNamePropertyId, @Nullable String hostNamePropertyId, String componentNamePropertyId, @Nullable String statePropertyId)
JMXPropertyProvider.componentMetrics - the map of supported metricsstreamProvider - the stream providerjmxHostProvider - the JMX host mappingmetricHostProvider - the host mappingclusterNamePropertyId - the cluster name property idhostNamePropertyId - the host name property idcomponentNamePropertyId - the component name property idstatePropertyId - the state property idJMXPropertyProvider.RestMetricsPropertyProvider createRESTMetricsPropertyProvider(Map<String,String> metricsProperties, Map<String,Map<String,PropertyInfo>> componentMetrics, StreamProvider streamProvider, MetricHostProvider metricHostProvider, String clusterNamePropertyId, @Nullable String hostNamePropertyId, String componentNamePropertyId, @Nullable String statePropertyId, @Nullable String componentName)
metricsProperties - the map of per-component metrics propertiescomponentMetrics - the map of supported metrics for componentstreamProvider - the stream providermetricHostProvider - metricsHostProvider instanceclusterNamePropertyId - the cluster name property idhostNamePropertyId - the host name property id, or null if none.componentNamePropertyId - the component name property idstatePropertyId - the state property id or null if none.componentName - the name of the component which the metric is for, or null
if none.RestMetricsPropertyProvider.Copyright © 2022 Apache Software Foundation. All rights reserved.