public class TimeseriesPersisterFactory extends Object implements PersisterFactory
TimeseriesPersister.| Constructor and Description | 
|---|
TimeseriesPersisterFactory(TimeseriesWriter timeseriesWriter,
                          MetaTagDataLoader metaTagDataLoader,
                          CacheConfig cacheConfig,
                          com.codahale.metrics.MetricRegistry registry)  | 
| Modifier and Type | Method and Description | 
|---|---|
Persister | 
createPersister(ServiceParameters params,
               RrdRepository repository)
Creates a visitor that is used to persist attributes in a  
CollectionSet. | 
Persister | 
createPersister(ServiceParameters params,
               RrdRepository repository,
               boolean dontPersistCounters,
               boolean forceStoreByGroup,
               boolean dontReorderAttributes)
Creates a visitor that is used to persist attributes in a  
CollectionSet. | 
@Inject public TimeseriesPersisterFactory(TimeseriesWriter timeseriesWriter, MetaTagDataLoader metaTagDataLoader, @Named(value="timeseriesPersisterMetaTagCache") CacheConfig cacheConfig, @Named(value="timeseriesMetricRegistry") com.codahale.metrics.MetricRegistry registry)
public Persister createPersister(ServiceParameters params, RrdRepository repository)
PersisterFactoryCollectionSet.createPersister in interface PersisterFactoryparams - used to determine if individual groups or resources in the collection set should be persistedrepository - used to the RRD persisters to build the appropriate RRD structuresPersister that persists the attributespublic Persister createPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters, boolean forceStoreByGroup, boolean dontReorderAttributes)
PersisterFactoryCollectionSet.createPersister in interface PersisterFactoryparams - used to determine if individual groups or resources in the collection set should be persistedrepository - used to the RRD persisters to build the appropriate RRD structuresdontPersistCounters - used to disable persistence for counters in order to try and avoid spikesforceStoreByGroup - forces the given CollectionSet to be persisted as a groupdontReorderAttributes - store attributes in the order they are visitedPersister that persists the attributesCopyright © 2021. All rights reserved.