public class EvaluatePersisterFactory extends Object implements PersisterFactory
Constructor and Description |
---|
EvaluatePersisterFactory(EvaluateStats stats)
Instantiates a new evaluate persister factory.
|
Modifier and Type | Method and Description |
---|---|
Persister |
createGroupPersister(ServiceParameters params,
RrdRepository repository,
boolean dontPersistCounters)
Creates a new EvaluatePersister object when storeByGroup is enabled.
|
Persister |
createOneToOnePersister(ServiceParameters params,
RrdRepository repository,
boolean dontPersistCounters)
Creates a new EvaluatePersister object when storeByGroup is disabled.
|
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 . |
public EvaluatePersisterFactory(EvaluateStats stats)
stats
- the evaluation statistics objectpublic Persister createPersister(ServiceParameters params, RrdRepository repository)
PersisterFactory
CollectionSet
.createPersister
in interface PersisterFactory
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 structuresPersister
that persists the attributespublic Persister createPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters, boolean forceStoreByGroup, boolean dontReorderAttributes)
PersisterFactory
CollectionSet
.createPersister
in interface PersisterFactory
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 given CollectionSet
to be persisted as a groupdontReorderAttributes
- store attributes in the order they are visitedPersister
that persists the attributespublic Persister createGroupPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters)
params
- the service parametersrepository
- the repositorydontPersistCounters
- the don't persist counterspublic Persister createOneToOnePersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters)
params
- the service parametersrepository
- the repositorydontPersistCounters
- the don't persist countersCopyright © 2021. All rights reserved.