public class MetricsDAO extends Object
| Constructor and Description |
|---|
MetricsDAO(StorageSession session,
MetricsConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete1HourMetric(int scheduleId,
long timestamp) |
void |
delete24HourMetric(int scheduleId,
long timestamp) |
void |
delete6HourMetric(int scheduleId,
long timestamp) |
StorageResultSetFuture |
deleteCacheEntries(MetricsTable table,
long timestamp,
int startScheduleId) |
StorageResultSetFuture |
deleteCacheIndexEntries(MetricsTable table,
long day,
int partition,
long collectionTimeSlice,
int startScheduleId) |
StorageResultSetFuture |
deleteCacheIndexEntry(MetricsTable table,
long day,
int partition,
long collectionTimeSlice,
int startScheduleId,
long insertTimeSlice) |
Iterable<AggregateSimpleNumericMetric> |
findAggregatedSimpleOneHourMetric(int scheduleId,
long startTime,
long endTime) |
StorageResultSetFuture |
findCacheEntriesAsync(MetricsTable table,
long timeSlice,
int startScheduleId) |
StorageResultSetFuture |
findCacheIndexEntriesByDay(MetricsTable table,
long day,
int partition) |
com.datastax.driver.core.ResultSet |
findCacheTimeSlice(MetricsTable table,
long timestamp,
int startScheduleId) |
StorageResultSetFuture |
findCurrentCacheIndexEntries(MetricsTable table,
long day,
int partition,
long collectionTimeSlice) |
StorageResultSetFuture |
findCurrentCacheIndexEntries(MetricsTable table,
long day,
int partition,
long collectionTimeSlice,
int startScheduleId) |
RawNumericMetric |
findLatestRawMetric(int scheduleId) |
List<AggregateNumericMetric> |
findOneHourMetrics(int scheduleId,
long startTime,
long endTime) |
Iterable<AggregateNumericMetric> |
findOneHourMetrics(List<Integer> scheduleIds,
long startTime,
long endTime) |
StorageResultSetFuture |
findOneHourMetricsAsync(int scheduleId,
long startTime,
long endTime) |
StorageResultSetFuture |
findPastCacheIndexEntriesBeforeToday(MetricsTable table,
long day,
int partition,
long collectionTimeSlice) |
StorageResultSetFuture |
findPastCacheIndexEntriesFromToday(MetricsTable table,
long day,
int partition,
long collectionTimeSlice) |
List<RawNumericMetric> |
findRawMetrics(int scheduleId,
long startTime,
long endTime) |
Iterable<RawNumericMetric> |
findRawMetrics(List<Integer> scheduleIds,
long startTime,
long endTime) |
StorageResultSetFuture |
findRawMetricsAsync(int scheduleId,
long startTime,
long endTime) |
com.datastax.driver.core.ResultSet |
findRawMetricsSync(int scheduleId,
long startTime,
long endTime) |
List<AggregateNumericMetric> |
findSixHourMetrics(int scheduleId,
long startTime,
long endTime) |
Iterable<AggregateNumericMetric> |
findSixHourMetrics(List<Integer> scheduleIds,
long startTime,
long endTime) |
StorageResultSetFuture |
findSixHourMetricsAsync(int scheduleId,
long startTime,
long endTime) |
List<AggregateNumericMetric> |
findTwentyFourHourMetrics(int scheduleId,
long startTime,
long endTime) |
Iterable<AggregateNumericMetric> |
findTwentyFourHourMetrics(List<Integer> scheduleIds,
long startTime,
long endTime) |
StorageResultSetFuture |
findTwentyFourHourMetricsAsync(int scheduleId,
long startTime,
long endTime) |
StorageSession |
getStorageSession() |
void |
initPreparedStatements() |
com.datastax.driver.core.ResultSet |
insertOneHourData(int scheduleId,
long timestamp,
AggregateType type,
double value) |
StorageResultSetFuture |
insertOneHourDataAsync(int scheduleId,
long timestamp,
AggregateType type,
double value) |
StorageResultSetFuture |
insertRawData(org.rhq.core.domain.measurement.MeasurementDataNumeric data) |
com.datastax.driver.core.ResultSet |
insertSixHourData(int scheduleId,
long timestamp,
AggregateType type,
double value) |
StorageResultSetFuture |
insertSixHourDataAsync(int scheduleId,
long timestamp,
AggregateType type,
double value) |
com.datastax.driver.core.ResultSet |
insertTwentyFourHourData(int scheduleId,
long timestamp,
AggregateType type,
double value) |
StorageResultSetFuture |
insertTwentyFourHourDataAsync(int scheduleId,
long timestamp,
AggregateType type,
double value) |
StorageResultSetFuture |
updateCacheIndex(MetricsTable table,
long day,
int partition,
long collectionTimeSlice,
int startScheduleId,
long insertTimeSlice,
Set<Integer> scheduleIds) |
StorageResultSetFuture |
updateMetricsCache(MetricsTable table,
long timeSlice,
int startScheduleId,
int scheduleId,
long timestamp,
Map<Integer,Double> values) |
public MetricsDAO(StorageSession session, MetricsConfiguration configuration)
public void initPreparedStatements()
public StorageSession getStorageSession()
public StorageResultSetFuture insertRawData(org.rhq.core.domain.measurement.MeasurementDataNumeric data)
public com.datastax.driver.core.ResultSet insertOneHourData(int scheduleId,
long timestamp,
AggregateType type,
double value)
public StorageResultSetFuture insertOneHourDataAsync(int scheduleId, long timestamp, AggregateType type, double value)
public com.datastax.driver.core.ResultSet insertSixHourData(int scheduleId,
long timestamp,
AggregateType type,
double value)
public StorageResultSetFuture insertSixHourDataAsync(int scheduleId, long timestamp, AggregateType type, double value)
public com.datastax.driver.core.ResultSet insertTwentyFourHourData(int scheduleId,
long timestamp,
AggregateType type,
double value)
public StorageResultSetFuture insertTwentyFourHourDataAsync(int scheduleId, long timestamp, AggregateType type, double value)
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> findOneHourMetrics(int scheduleId, long startTime, long endTime)
public StorageResultSetFuture findOneHourMetricsAsync(int scheduleId, long startTime, long endTime)
public List<AggregateNumericMetric> findSixHourMetrics(int scheduleId, long startTime, long endTime)
public StorageResultSetFuture findSixHourMetricsAsync(int scheduleId, long startTime, long endTime)
public List<AggregateNumericMetric> findTwentyFourHourMetrics(int scheduleId, long startTime, long endTime)
public StorageResultSetFuture findTwentyFourHourMetricsAsync(int scheduleId, long startTime, long endTime)
public Iterable<AggregateSimpleNumericMetric> findAggregatedSimpleOneHourMetric(int scheduleId, long startTime, long endTime)
public Iterable<AggregateNumericMetric> findOneHourMetrics(List<Integer> scheduleIds, long startTime, long endTime)
public Iterable<AggregateNumericMetric> findSixHourMetrics(List<Integer> scheduleIds, long startTime, long endTime)
public Iterable<AggregateNumericMetric> findTwentyFourHourMetrics(List<Integer> scheduleIds, long startTime, long endTime)
public StorageResultSetFuture findCacheEntriesAsync(MetricsTable table, long timeSlice, int startScheduleId)
public com.datastax.driver.core.ResultSet findCacheTimeSlice(MetricsTable table, long timestamp, int startScheduleId)
public StorageResultSetFuture updateMetricsCache(MetricsTable table, long timeSlice, int startScheduleId, int scheduleId, long timestamp, Map<Integer,Double> values)
public StorageResultSetFuture deleteCacheEntries(MetricsTable table, long timestamp, int startScheduleId)
public StorageResultSetFuture updateCacheIndex(MetricsTable table, long day, int partition, long collectionTimeSlice, int startScheduleId, long insertTimeSlice, Set<Integer> scheduleIds)
public StorageResultSetFuture findPastCacheIndexEntriesBeforeToday(MetricsTable table, long day, int partition, long collectionTimeSlice)
public StorageResultSetFuture findCacheIndexEntriesByDay(MetricsTable table, long day, int partition)
public StorageResultSetFuture findPastCacheIndexEntriesFromToday(MetricsTable table, long day, int partition, long collectionTimeSlice)
public StorageResultSetFuture findCurrentCacheIndexEntries(MetricsTable table, long day, int partition, long collectionTimeSlice)
public StorageResultSetFuture findCurrentCacheIndexEntries(MetricsTable table, long day, int partition, long collectionTimeSlice, int startScheduleId)
public StorageResultSetFuture deleteCacheIndexEntry(MetricsTable table, long day, int partition, long collectionTimeSlice, int startScheduleId, long insertTimeSlice)
public StorageResultSetFuture deleteCacheIndexEntries(MetricsTable table, long day, int partition, long collectionTimeSlice, int startScheduleId)
public void delete1HourMetric(int scheduleId,
long timestamp)
public void delete6HourMetric(int scheduleId,
long timestamp)
public void delete24HourMetric(int scheduleId,
long timestamp)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.