Class KafkaPersister
- java.lang.Object
-
- org.opennms.features.kafka.producer.collection.KafkaPersister
-
- All Implemented Interfaces:
CollectionSetVisitor
,Persister
public class KafkaPersister extends Object implements Persister
-
-
Constructor Summary
Constructors Constructor Description KafkaPersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completeAttribute(CollectionAttribute attribute)
completeAttributevoid
completeCollectionSet(CollectionSet set)
completeCollectionSetvoid
completeGroup(AttributeGroup group)
completeGroupvoid
completeResource(CollectionResource resource)
completeResourcevoid
persistNumericAttribute(CollectionAttribute attribute)
persistNumericAttributevoid
persistStringAttribute(CollectionAttribute attribute)
persistStringAttributevoid
setCollectionSetMapper(CollectionSetMapper collectionSetMapper)
void
setProducer(org.apache.kafka.clients.producer.KafkaProducer<String,byte[]> producer)
void
setTopicName(String topicName)
void
visitAttribute(CollectionAttribute attribute)
visitAttributevoid
visitCollectionSet(CollectionSet collectionSet)
visitCollectionSetvoid
visitGroup(AttributeGroup group)
visitGroupvoid
visitResource(CollectionResource resource)
visitResource
-
-
-
Method Detail
-
visitCollectionSet
public void visitCollectionSet(CollectionSet collectionSet)
visitCollectionSet
- Specified by:
visitCollectionSet
in interfaceCollectionSetVisitor
- Parameters:
collectionSet
- aorg.opennms.netmgt.collectd.CollectionSet
object.
-
setTopicName
public void setTopicName(String topicName)
-
setProducer
public void setProducer(org.apache.kafka.clients.producer.KafkaProducer<String,byte[]> producer)
-
setCollectionSetMapper
public void setCollectionSetMapper(CollectionSetMapper collectionSetMapper)
-
visitResource
public void visitResource(CollectionResource resource)
Description copied from interface:CollectionSetVisitor
visitResource
- Specified by:
visitResource
in interfaceCollectionSetVisitor
- Parameters:
resource
- aCollectionResource
object.
-
visitGroup
public void visitGroup(AttributeGroup group)
Description copied from interface:CollectionSetVisitor
visitGroup
- Specified by:
visitGroup
in interfaceCollectionSetVisitor
- Parameters:
group
- aorg.opennms.netmgt.collectd.AttributeGroup
object.
-
visitAttribute
public void visitAttribute(CollectionAttribute attribute)
Description copied from interface:CollectionSetVisitor
visitAttribute
- Specified by:
visitAttribute
in interfaceCollectionSetVisitor
- Parameters:
attribute
- aorg.opennms.netmgt.collection.api.collectd.CollectionAttribute
object.
-
completeAttribute
public void completeAttribute(CollectionAttribute attribute)
Description copied from interface:CollectionSetVisitor
completeAttribute
- Specified by:
completeAttribute
in interfaceCollectionSetVisitor
- Parameters:
attribute
- aorg.opennms.netmgt.collection.api.collectd.CollectionAttribute
object.
-
completeGroup
public void completeGroup(AttributeGroup group)
Description copied from interface:CollectionSetVisitor
completeGroup
- Specified by:
completeGroup
in interfaceCollectionSetVisitor
- Parameters:
group
- aorg.opennms.netmgt.collectd.AttributeGroup
object.
-
completeResource
public void completeResource(CollectionResource resource)
Description copied from interface:CollectionSetVisitor
completeResource
- Specified by:
completeResource
in interfaceCollectionSetVisitor
- Parameters:
resource
- aCollectionResource
object.
-
completeCollectionSet
public void completeCollectionSet(CollectionSet set)
Description copied from interface:CollectionSetVisitor
completeCollectionSet
- Specified by:
completeCollectionSet
in interfaceCollectionSetVisitor
- Parameters:
set
- aorg.opennms.netmgt.collectd.CollectionSet
object.
-
persistNumericAttribute
public void persistNumericAttribute(CollectionAttribute attribute)
Description copied from interface:Persister
persistNumericAttribute
- Specified by:
persistNumericAttribute
in interfacePersister
- Parameters:
attribute
- aCollectionAttribute
object.
-
persistStringAttribute
public void persistStringAttribute(CollectionAttribute attribute)
Description copied from interface:Persister
persistStringAttribute
- Specified by:
persistStringAttribute
in interfacePersister
- Parameters:
attribute
- aCollectionAttribute
object.
-
-