public class HawkularWildFlyAgentProvider extends Object
| Constructor and Description |
|---|
HawkularWildFlyAgentProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceToInventory(String resourceId)
This will add the resource to the internal inventory and persist the full inventory to hawkular.
|
void |
postConstruct() |
void |
removeResourceFromInventory(String doomedResourceId)
This will remove the resource from the internal inventory and persist the full inventory to hawkular.
|
void |
sendAvail(String availKey,
Avail availValue)
Given an availability identifier and the avail data value, this writes the data to Hawkular.
|
void |
sendMetric(String metricKey,
Double metricValue,
org.hawkular.metrics.client.common.MetricType metricType)
Given a metric identifier and the metric data value, this writes the data to Hawkular.
|
void |
sendStringMetric(String metricKey,
String metricValue)
Given a metric identifier and the metric data value, this writes the data to Hawkular.
|
@PostConstruct public void postConstruct()
public void sendMetric(String metricKey, Double metricValue, org.hawkular.metrics.client.common.MetricType metricType)
metricKey - identifies the metricmetricValue - the value of the metricmetricType - the type of metric (e.g. gauge or counter)public void sendStringMetric(String metricKey, String metricValue)
metricKey - identifies the metricmetricValue - the string value of the metricpublic void sendAvail(String availKey, Avail availValue)
availKey - identifies the availability metricavailValue - the value of the availabilitypublic void addResourceToInventory(String resourceId)
resourceId - the new resource IDpublic void removeResourceFromInventory(String doomedResourceId)
resource - the resource to removeCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.