public class HawkularStorageAdapter extends Object implements StorageAdapter
| Constructor and Description |
|---|
HawkularStorageAdapter() |
| Modifier and Type | Method and Description |
|---|---|
AvailDataPayloadBuilder |
createAvailDataPayloadBuilder() |
MetricDataPayloadBuilder |
createMetricDataPayloadBuilder() |
MonitorServiceConfiguration.StorageAdapter |
getStorageAdapterConfiguration() |
void |
initialize(MonitorServiceConfiguration.StorageAdapter config,
Diagnostics diag,
ServerIdentifiers selfId,
HttpClientBuilder httpClientBuilder)
Initializes the storage adapter.
|
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.
|
void |
storeResource(Resource<?,?,?,?,?> resource)
Stores the given resource and its resourceType is necessary.
|
public void initialize(MonitorServiceConfiguration.StorageAdapter config, Diagnostics diag, ServerIdentifiers selfId, HttpClientBuilder httpClientBuilder)
StorageAdapterinitialize in interface StorageAdapterconfig - 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 serverpublic MonitorServiceConfiguration.StorageAdapter 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 storeResource(Resource<?,?,?,?,?> resource)
InventoryStoragestoreResource in interface InventoryStorageresource - to be storedpublic void shutdown()
StorageAdaptershutdown in interface StorageAdapterCopyright © 2015 Red Hat, Inc.. All rights reserved.