public class MetricsOnlyStorageAdapter extends Object implements StorageAdapter
| Constructor and Description |
|---|
MetricsOnlyStorageAdapter() |
| Modifier and Type | Method and Description |
|---|---|
AvailDataPayloadBuilder |
createAvailDataPayloadBuilder() |
MetricDataPayloadBuilder |
createMetricDataPayloadBuilder() |
MonitorServiceConfiguration.StorageAdapterConfiguration |
getStorageAdapterConfiguration() |
void |
initialize(String feedId,
MonitorServiceConfiguration.StorageAdapterConfiguration config,
Diagnostics diag,
HttpClientBuilder httpClientBuilder)
Initializes the storage adapter.
|
<L> void |
resourcesAdded(InventoryEvent<L> event)
Notifies this listener that the resources in
InventoryEvent.getPayload()
were added to the monitored endpoint. |
<L> void |
resourcesRemoved(InventoryEvent<L> event)
Notifies this listener that the resources in
InventoryEvent.getPayload()
were removed from the monitored endpoint. |
void |
shutdown()
Clean up and stop whatever the storage adapter is doing.
|
void |
store(AvailDataPayloadBuilder payloadBuilder)
Stores the availability data found in the given builder.
|
void |
store(MetricDataPayloadBuilder payloadBuilder)
Stores the metric data found in the given builder.
|
void |
storeAvails(Set<AvailDataPoint> datapoints)
Stores the given availability check data points.
|
void |
storeMetrics(Set<MetricDataPoint> datapoints)
Stores the given collected metric data points.
|
public void initialize(String feedId, MonitorServiceConfiguration.StorageAdapterConfiguration config, Diagnostics diag, HttpClientBuilder httpClientBuilder)
StorageAdapterinitialize in interface StorageAdapterfeedId - identifies the feed that is storing dataconfig - the configuration of the storage adapterdiag - the object used to track internal diagnostic data for the storage adapterhttpClientBuilder - used to communicate with the storage serverpublic MonitorServiceConfiguration.StorageAdapterConfiguration getStorageAdapterConfiguration()
getStorageAdapterConfiguration in interface StorageAdapterpublic MetricDataPayloadBuilder createMetricDataPayloadBuilder()
createMetricDataPayloadBuilder in interface MetricStoragepublic AvailDataPayloadBuilder createAvailDataPayloadBuilder()
createAvailDataPayloadBuilder in interface AvailStoragepublic void storeMetrics(Set<MetricDataPoint> datapoints)
StorageAdapterstoreMetrics in interface StorageAdapterdatapoints - the data to be storedpublic void store(MetricDataPayloadBuilder payloadBuilder)
MetricStoragestore in interface MetricStoragepayloadBuilder - contains the metric data to storepublic void storeAvails(Set<AvailDataPoint> datapoints)
StorageAdapterstoreAvails in interface StorageAdapterdatapoints - the data to be storedpublic void store(AvailDataPayloadBuilder payloadBuilder)
AvailStoragestore in interface AvailStoragepayloadBuilder - contains the availability data to storepublic void shutdown()
StorageAdaptershutdown in interface StorageAdapterpublic <L> void resourcesAdded(InventoryEvent<L> event)
InventoryListenerInventoryEvent.getPayload()
were added to the monitored endpoint.resourcesAdded in interface InventoryListenerevent - the InventoryEventpublic <L> void resourcesRemoved(InventoryEvent<L> event)
InventoryListenerInventoryEvent.getPayload()
were removed from the monitored endpoint.resourcesRemoved in interface InventoryListenerevent - the InventoryEventCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.