public class MetricsDAO extends Object
| Constructor and Description |
|---|
MetricsDAO(StorageSession session,
MetricsConfiguration configuration) |
public MetricsDAO(StorageSession session, MetricsConfiguration configuration)
public void initPreparedStatements()
public StorageSession getStorageSession()
public StorageResultSetFuture insertRawData(org.rhq.core.domain.measurement.MeasurementDataNumeric data)
public StorageResultSetFuture insert1HourData(AggregateNumericMetric metric)
public StorageResultSetFuture insert6HourData(AggregateNumericMetric metric)
public StorageResultSetFuture insert24HourData(AggregateNumericMetric metric)
public List<RawNumericMetric> findRawMetrics(int scheduleId, long startTime, long endTime)
public com.datastax.driver.core.ResultSet findRawMetricsSync(int scheduleId,
long startTime,
long endTime)
public StorageResultSetFuture findRawMetricsAsync(int scheduleId, long startTime, long endTime)
public RawNumericMetric findLatestRawMetric(int scheduleId)
public Iterable<RawNumericMetric> findRawMetrics(List<Integer> scheduleIds, long startTime, long endTime)
public List<AggregateNumericMetric> findAggregateMetrics(int scheduleId, Bucket bucket, long startTime, long endTime)
public StorageResultSetFuture findAggregateMetricsAsync(int scheduleId, Bucket bucket, long startTime, long endTime)
public StorageResultSetFuture findIndexEntries(IndexBucket bucket, int partition, long timestamp)
public StorageResultSetFuture findIndexEntries(IndexBucket bucket, int partition, long timestamp, int scheduleId)
public StorageResultSetFuture updateIndex(IndexBucket bucket, long timestamp, int scheduleId)
public StorageResultSetFuture deleteIndexEntry(IndexEntry indexEntry)
public void deleteAggregate(AggregateNumericMetric metric)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.