Class AssetLineageOMRSTopicListener
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetlineage.listeners.AssetLineageOMRSTopicListener
-
- All Implemented Interfaces:
OMRSTopicListener
public class AssetLineageOMRSTopicListener extends Object implements OMRSTopicListener
AssetLineageOMRSTopicListener received details of each OMRS event from the cohorts that the local server is connected to. It passes Lineage Entity events to the publisher.
-
-
Constructor Summary
Constructors Constructor Description AssetLineageOMRSTopicListener(Converter converter, String serverName, AssetLineagePublisher publisher, Set<String> lineageClassificationTypes, AuditLog auditLog)The constructor is given the connection to the out topic for Asset Lineage OMAS along with classes for testing and manipulating instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetLineagePublishergetPublisher()Returns the Asset Lineage PublishervoidprocessInstanceEvent(OMRSInstanceEvent instanceEvent)Unpack and deliver an instance event to the InstanceEventProcessorvoidprocessRegistryEvent(OMRSRegistryEvent event)Method to pass a Registry event received on topic.voidprocessTypeDefEvent(OMRSTypeDefEvent event)Method to pass a Registry event received on topic.
-
-
-
Constructor Detail
-
AssetLineageOMRSTopicListener
public AssetLineageOMRSTopicListener(Converter converter, String serverName, AssetLineagePublisher publisher, Set<String> lineageClassificationTypes, AuditLog auditLog)
The constructor is given the connection to the out topic for Asset Lineage OMAS along with classes for testing and manipulating instances.- Parameters:
converter- The converter used for creating entities in Open Lineage formatserverName- name of this server instancepublisher- instance of the asset-lineage topic publisherT
-
-
Method Detail
-
getPublisher
public AssetLineagePublisher getPublisher()
Returns the Asset Lineage Publisher- Returns:
- Asset Lineage Publisher
-
processRegistryEvent
public void processRegistryEvent(OMRSRegistryEvent event)
Method to pass a Registry event received on topic.- Specified by:
processRegistryEventin interfaceOMRSTopicListener- Parameters:
event- inbound event
-
processTypeDefEvent
public void processTypeDefEvent(OMRSTypeDefEvent event)
Method to pass a Registry event received on topic.- Specified by:
processTypeDefEventin interfaceOMRSTopicListener- Parameters:
event- inbound event
-
processInstanceEvent
public void processInstanceEvent(OMRSInstanceEvent instanceEvent)
Unpack and deliver an instance event to the InstanceEventProcessor- Specified by:
processInstanceEventin interfaceOMRSTopicListener- Parameters:
instanceEvent- event to unpack
-
-