public class RrdSampleRepository extends Object implements SampleRepository
Constructor and Description |
---|
RrdSampleRepository() |
Modifier and Type | Method and Description |
---|---|
Results |
find(SampleProcessorBuilder builder,
Timestamp start,
Timestamp end,
Resource resource,
Metric... metrics)
Returns measurements for a set of metrics, a given resource, and a time
range.
|
org.opennms.netmgt.collection.api.PersisterFactory |
getPersisterFactory() |
org.opennms.netmgt.dao.api.ResourceStorageDao |
getResourceStorageDao() |
org.opennms.netmgt.rrd.RrdRepository |
getRrdRepository() |
void |
save(SampleSet sampleSet) |
void |
setPersisterFactory(org.opennms.netmgt.collection.api.PersisterFactory persisterFactory) |
void |
setResourceStorageDao(org.opennms.netmgt.dao.api.ResourceStorageDao resourceStorageDao) |
void |
setRrdRepository(org.opennms.netmgt.rrd.RrdRepository repo) |
public void save(SampleSet sampleSet)
save
in interface SampleSetDispatcher
public org.opennms.netmgt.rrd.RrdRepository getRrdRepository()
public void setRrdRepository(org.opennms.netmgt.rrd.RrdRepository repo)
public org.opennms.netmgt.collection.api.PersisterFactory getPersisterFactory()
public void setPersisterFactory(org.opennms.netmgt.collection.api.PersisterFactory persisterFactory)
public org.opennms.netmgt.dao.api.ResourceStorageDao getResourceStorageDao()
public void setResourceStorageDao(org.opennms.netmgt.dao.api.ResourceStorageDao resourceStorageDao)
public Results find(SampleProcessorBuilder builder, Timestamp start, Timestamp end, Resource resource, Metric... metrics)
SampleRepository
Passing a null value for start
or end
serves to make that
end of the temporal range unbounded. For example, a null start will
return all matching measurements up to the end Timestamp
. Passing
both a null start
and end
will return all measurements
for the matching metrics
(so be careful).
Note: There is no guarantee that a sample period will include results for every requested metric (or any of them, in fact); Missing samples are recorded with a value of Double.NaN.
find
in interface SampleRepository
start
- the start time of this search.end
- the end time of this search.resource
- the resource to query.metrics
- a sequence of metrics to include in the results.Results
instance containing the results of the search.Copyright © 2016. All rights reserved.