public class DefaultMetricStore extends Object implements MetricStore
MetricStore.| Modifier and Type | Field and Description |
|---|---|
static int |
TOTALS_RESOLUTION |
| Constructor and Description |
|---|
DefaultMetricStore(MetricDatasetFactory dsFactory) |
DefaultMetricStore(MetricDatasetFactory dsFactory,
int[] resolutions) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<? extends MetricValues> metricValues) |
void |
add(MetricValues metricValues) |
void |
delete(MetricDeleteQuery query) |
void |
deleteAll() |
void |
deleteBefore(long timestamp) |
Collection<String> |
findMetricNames(MetricSearchQuery query) |
Collection<TagValue> |
findNextAvailableTags(MetricSearchQuery query) |
Collection<MetricTimeSeries> |
query(MetricDataQuery query) |
void |
setMetricsContext(MetricsContext metricsContext) |
public static final int TOTALS_RESOLUTION
@Inject public DefaultMetricStore(MetricDatasetFactory dsFactory)
public DefaultMetricStore(MetricDatasetFactory dsFactory, int[] resolutions)
public void setMetricsContext(MetricsContext metricsContext)
setMetricsContext in interface MetricStorepublic void add(MetricValues metricValues) throws Exception
add in interface MetricStoreExceptionpublic void add(Collection<? extends MetricValues> metricValues) throws Exception
add in interface MetricStoreExceptionpublic Collection<MetricTimeSeries> query(MetricDataQuery query)
query in interface MetricStorepublic void deleteBefore(long timestamp)
throws Exception
deleteBefore in interface MetricStoreExceptionpublic void delete(MetricDeleteQuery query) throws Exception
delete in interface MetricStoreExceptionpublic void deleteAll()
throws Exception
deleteAll in interface MetricStoreExceptionpublic Collection<TagValue> findNextAvailableTags(MetricSearchQuery query) throws Exception
findNextAvailableTags in interface MetricStoreExceptionpublic Collection<String> findMetricNames(MetricSearchQuery query) throws Exception
findMetricNames in interface MetricStoreExceptionCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.