public interface StorageAdapter extends MetricStorage, AvailStorage, InventoryStorage
| Modifier and Type | Method and Description |
|---|---|
MonitorServiceConfiguration.StorageAdapterConfiguration |
getStorageAdapterConfiguration() |
void |
initialize(MonitorServiceConfiguration.StorageAdapterConfiguration config,
Diagnostics diag,
HttpClientBuilder httpClientBuilder)
Initializes the storage adapter.
|
void |
shutdown()
Clean up and stop whatever the storage adapter is doing.
|
void |
storeAvails(Set<AvailDataPoint> datapoints)
Stores the given availability check data points.
|
void |
storeMetrics(Set<MetricDataPoint> datapoints)
Stores the given collected metric data points.
|
createMetricDataPayloadBuilder, storecreateAvailDataPayloadBuilder, storediscoverAllFinished, resourceRemoved, resourcesAddedvoid initialize(MonitorServiceConfiguration.StorageAdapterConfiguration config, Diagnostics diag, HttpClientBuilder httpClientBuilder)
config - the configuration of the storage adapterdiag - the object used to track internal diagnostic data for the storage adapterselfId - helps identify where we are hostedhttpClientBuilder - used to communicate with the storage servervoid shutdown()
MonitorServiceConfiguration.StorageAdapterConfiguration getStorageAdapterConfiguration()
void storeMetrics(Set<MetricDataPoint> datapoints)
datapoints - the data to be storedvoid storeAvails(Set<AvailDataPoint> datapoints)
datapoints - the data to be storedCopyright © 2015 Red Hat, Inc.. All rights reserved.