public class AccumuloMetricStore extends Object implements MetricStore
| Modifier and Type | Field and Description |
|---|---|
protected static StoreConfig |
DEFAULT_STORE_CONFIG |
static String |
DEFAULT_TABLE_NAME |
static String |
REVERSE_SUFFIX |
| Constructor and Description |
|---|
AccumuloMetricStore(org.apache.accumulo.core.client.Connector connector) |
AccumuloMetricStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config) |
| Modifier and Type | Method and Description |
|---|---|
static String |
combine(String... items) |
protected void |
configureTable(org.apache.accumulo.core.client.Connector connector,
String tableName)
Utility method to update the correct iterators to the table.
|
protected org.apache.accumulo.core.client.ScannerBase |
metricScanner(Date start,
Date end,
String group,
String type,
String name,
MetricTimeUnit timeUnit,
Auths auths) |
org.calrissian.mango.collect.CloseableIterable<Metric> |
query(Date start,
Date end,
String group,
String type,
String name,
MetricTimeUnit timeUnit,
Auths auths)
Query metrics back from the store.
|
void |
save(Iterable<Metric> metricData)
Save a set of metrics to the store
|
void |
shutdown()
Will close all underlying resources
|
public static final String DEFAULT_TABLE_NAME
public static final String REVERSE_SUFFIX
protected static final StoreConfig DEFAULT_STORE_CONFIG
public AccumuloMetricStore(org.apache.accumulo.core.client.Connector connector)
throws org.apache.accumulo.core.client.TableNotFoundException,
org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException
org.apache.accumulo.core.client.TableNotFoundExceptionorg.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionpublic AccumuloMetricStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config)
throws org.apache.accumulo.core.client.TableNotFoundException,
org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException
org.apache.accumulo.core.client.TableNotFoundExceptionorg.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionprotected void configureTable(org.apache.accumulo.core.client.Connector connector,
String tableName)
throws org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
connector - org.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionprotected org.apache.accumulo.core.client.ScannerBase metricScanner(Date start, Date end, String group, String type, String name, MetricTimeUnit timeUnit, Auths auths)
public void shutdown()
throws org.apache.accumulo.core.client.MutationsRejectedException
org.apache.accumulo.core.client.MutationsRejectedExceptionpublic void save(Iterable<Metric> metricData)
save in interface MetricStorepublic org.calrissian.mango.collect.CloseableIterable<Metric> query(Date start, Date end, String group, String type, String name, MetricTimeUnit timeUnit, Auths auths)
query in interface MetricStoreCopyright © 2014 Calrissian. All Rights Reserved.