public class MetricStorageProxy extends Object implements MetricStorage
MonitorServiceConfiguration.StorageAdapterConfiguration.| Constructor and Description |
|---|
MetricStorageProxy() |
| Modifier and Type | Method and Description |
|---|---|
MetricDataPayloadBuilder |
createMetricDataPayloadBuilder() |
MetricTagPayloadBuilder |
createMetricTagPayloadBuilder() |
void |
setStorageAdapter(StorageAdapter storageAdapter) |
void |
store(MetricDataPayloadBuilder payloadBuilder,
long waitMillis)
Stores the metric data found in the given builder.
|
void |
store(MetricTagPayloadBuilder payloadBuilder,
long waitMillis)
Stores the metric tags found in the given builder.
|
public void setStorageAdapter(StorageAdapter storageAdapter)
public MetricDataPayloadBuilder createMetricDataPayloadBuilder()
createMetricDataPayloadBuilder in interface MetricStoragepublic void store(MetricDataPayloadBuilder payloadBuilder, long waitMillis)
MetricStoragewaitMillis is provided, it indicates the caller is willing
to wait up to that amount of milliseconds for the store to complete before returning.store in interface MetricStoragepayloadBuilder - contains the metric data to storewaitMillis - the amount of milliseconds to wait for the store to complete before returning (0==no wait)public MetricTagPayloadBuilder createMetricTagPayloadBuilder()
createMetricTagPayloadBuilder in interface MetricStoragepublic void store(MetricTagPayloadBuilder payloadBuilder, long waitMillis)
MetricStoragewaitMillis is provided, it indicates the caller is willing
to wait up to that amount of milliseconds for the store to complete before returning.store in interface MetricStoragepayloadBuilder - contains the metric tags to storewaitMillis - the amount of milliseconds to wait for the store to complete before returning (0==no wait)Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.