public class MetricsServer extends Object
| Constructor and Description |
|---|
MetricsServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNumericData(Set<org.rhq.core.domain.measurement.MeasurementDataNumeric> dataSet,
RawDataInsertedCallback callback) |
Iterable<AggregateNumericMetric> |
calculateAggregates()
Computes and stores aggregates for all buckets that are ready to be aggregated.
|
protected org.joda.time.DateTime |
currentHour() |
List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite> |
findDataForGroup(List<Integer> scheduleIds,
long beginTime,
long endTime,
int numberOfBuckets) |
Iterable<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite> |
findDataForResource(int scheduleId,
long beginTime,
long endTime,
int numberOfBuckets) |
RawNumericMetric |
findLatestValueForResource(int scheduleId) |
int |
getAggregationBatchSize() |
int |
getAggregationParallelism() |
int |
getNumAggregationWorkers() |
AggregateNumericMetric |
getSummaryAggregate(int scheduleId,
long beginTime,
long endTime) |
AggregateNumericMetric |
getSummaryAggregate(List<Integer> scheduleIds,
long beginTime,
long endTime) |
com.google.common.util.concurrent.ListenableFuture<AggregateNumericMetric> |
getSummaryAggregateAsync(int scheduleId,
long beginTime,
long endTime) |
long |
getTotalAggregationTime() |
void |
init() |
protected org.joda.time.DateTime |
roundDownToHour(long timestamp) |
void |
setAggregationBatchSize(int batchSize) |
void |
setAggregationParallelism(int parallelism) |
void |
setConfiguration(MetricsConfiguration configuration) |
void |
setDAO(MetricsDAO dao) |
void |
setDateTimeService(DateTimeService dateTimeService) |
void |
setUseAsyncAggregation(boolean useAsyncAggregation) |
void |
shutdown() |
public void setDAO(MetricsDAO dao)
public void setConfiguration(MetricsConfiguration configuration)
public void setDateTimeService(DateTimeService dateTimeService)
public int getAggregationBatchSize()
public void setAggregationBatchSize(int batchSize)
public int getAggregationParallelism()
public void setAggregationParallelism(int parallelism)
public int getNumAggregationWorkers()
public void setUseAsyncAggregation(boolean useAsyncAggregation)
public void init()
protected org.joda.time.DateTime currentHour()
protected org.joda.time.DateTime roundDownToHour(long timestamp)
public void shutdown()
public RawNumericMetric findLatestValueForResource(int scheduleId)
public long getTotalAggregationTime()
public Iterable<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite> findDataForResource(int scheduleId, long beginTime, long endTime, int numberOfBuckets)
public List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite> findDataForGroup(List<Integer> scheduleIds, long beginTime, long endTime, int numberOfBuckets)
public AggregateNumericMetric getSummaryAggregate(int scheduleId, long beginTime, long endTime)
public com.google.common.util.concurrent.ListenableFuture<AggregateNumericMetric> getSummaryAggregateAsync(int scheduleId, long beginTime, long endTime)
public AggregateNumericMetric getSummaryAggregate(List<Integer> scheduleIds, long beginTime, long endTime)
public void addNumericData(Set<org.rhq.core.domain.measurement.MeasurementDataNumeric> dataSet, RawDataInsertedCallback callback)
public Iterable<AggregateNumericMetric> calculateAggregates()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.