Class KafkaPersisterFactory
- java.lang.Object
-
- org.opennms.features.kafka.producer.collection.KafkaPersisterFactory
-
- All Implemented Interfaces:
PersisterFactory
public class KafkaPersisterFactory extends Object implements PersisterFactory
-
-
Constructor Summary
Constructors Constructor Description KafkaPersisterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersistercreatePersister(ServiceParameters params, RrdRepository repository)Creates a visitor that is used to persist attributes in aCollectionSet.PersistercreatePersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters, boolean forceStoreByGroup, boolean dontReorderAttributes)Creates a visitor that is used to persist attributes in aCollectionSet.voiddestroy()voidinit()voidsetCollectionSetMapper(CollectionSetMapper collectionSetMapper)voidsetConfigAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)voidsetTopicName(String topicName)
-
-
-
Method Detail
-
createPersister
public Persister createPersister(ServiceParameters params, RrdRepository repository, boolean dontPersistCounters, boolean forceStoreByGroup, boolean dontReorderAttributes)
Description copied from interface:PersisterFactoryCreates a visitor that is used to persist attributes in aCollectionSet.- Specified by:
createPersisterin interfacePersisterFactory- 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 givenCollectionSetto be persisted as a groupdontReorderAttributes- store attributes in the order they are visited- Returns:
- a
Persisterthat persists the attributes
-
createPersister
public Persister createPersister(ServiceParameters params, RrdRepository repository)
Description copied from interface:PersisterFactoryCreates a visitor that is used to persist attributes in aCollectionSet.- Specified by:
createPersisterin interfacePersisterFactory- 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
Persisterthat persists the attributes
-
init
public void init() throws IOException- Throws:
IOException
-
destroy
public void destroy()
-
setConfigAdmin
public void setConfigAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
-
setCollectionSetMapper
public void setCollectionSetMapper(CollectionSetMapper collectionSetMapper)
-
setTopicName
public void setTopicName(String topicName)
-
-