public class NoopSampleStore extends Object implements SampleStore
SampleStore.SampleLoader
Constructor and Description |
---|
NoopSampleStore() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the sample store.
|
void |
configure(Map<String,?> map)
Configure this class with the given key-value pairs
|
void |
evictSamplesBefore(long timestamp)
This method is called when a workload snapshot window is evicted.
|
void |
loadSamples(SampleStore.SampleLoader sampleLoader)
Load the samples from the sample store.
|
double |
sampleLoadingProgress()
Get the sample loading progress.
|
void |
storeSamples(MetricSampler.Samples samples)
Store all the samples to the sample store.
|
public void configure(Map<String,?> map)
CruiseControlConfigurable
configure
in interface CruiseControlConfigurable
public void storeSamples(MetricSampler.Samples samples)
SampleStore
storeSamples
in interface SampleStore
samples
- the samples to store.public void loadSamples(SampleStore.SampleLoader sampleLoader)
SampleStore
loadSamples
in interface SampleStore
sampleLoader
- the sample loader that takes in samples.public double sampleLoadingProgress()
SampleStore
sampleLoadingProgress
in interface SampleStore
public void evictSamplesBefore(long timestamp)
SampleStore
evictSamplesBefore
in interface SampleStore
timestamp
- the timestamp of the snapshot window that has just been evicted.public void close()
SampleStore
close
in interface SampleStore
close
in interface AutoCloseable