Interface PersisterFactory
-
- All Known Implementing Classes:
DelegatingPersisterFactory
,EvaluatePersisterFactory
,KafkaPersisterFactory
,MockPersisterFactory
,NewtsPersisterFactory
,OsgiPersisterFactory
,RrdPersisterFactory
,TcpPersisterFactory
,TimeseriesPersisterFactory
public interface PersisterFactory
Used to instantiate an appropriateCollectionSetVisitor
whose role is to persist the attributes in aCollectionSet
.- Author:
- jwhite
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Persister
createPersister(ServiceParameters params, RrdRepository repository)
Creates a visitor that is used to persist attributes in aCollectionSet
.Persister
createPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters, boolean forceStoreByGroup, boolean dontReorderAttributes)
Creates a visitor that is used to persist attributes in aCollectionSet
.
-
-
-
Method Detail
-
createPersister
Persister createPersister(ServiceParameters params, RrdRepository repository)
Creates a visitor that is used to persist attributes in aCollectionSet
.- Parameters:
params
- 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 structures- Returns:
- a
Persister
that persists the attributes
-
createPersister
Persister createPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters, boolean forceStoreByGroup, boolean dontReorderAttributes)
Creates a visitor that is used to persist attributes in aCollectionSet
.- Parameters:
params
- 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 givenCollectionSet
to be persisted as a groupdontReorderAttributes
- store attributes in the order they are visited- Returns:
- a
Persister
that persists the attributes
-
-