Class AssetLineageOMRSTopicListener
java.lang.Object
org.odpi.openmetadata.accessservices.assetlineage.listeners.AssetLineageOMRSTopicListener
- All Implemented Interfaces:
OMRSTopicListener
,OMRSTopicRepositoryEventListener
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
ConstructorsConstructorDescriptionAssetLineageOMRSTopicListener
(Converter converter, String serverName, AssetLineagePublisher publisher, AssetLineageTypesValidator assetLineageTypesValidator, 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
Modifier and TypeMethodDescriptionReturns the Asset Lineage Publishervoid
processInstanceEvent
(OMRSInstanceEvent instanceEvent) Unpack and deliver an instance event to the InstanceEventProcessorvoid
Method to pass a Registry event received on topic.void
Method to pass a Registry event received on topic.
-
Constructor Details
-
AssetLineageOMRSTopicListener
public AssetLineageOMRSTopicListener(Converter converter, String serverName, AssetLineagePublisher publisher, AssetLineageTypesValidator assetLineageTypesValidator, 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 publisherassetLineageTypesValidator
- service for validating typesauditLog
- logging destination
-
-
Method Details
-
getPublisher
Returns the Asset Lineage Publisher- Returns:
- Asset Lineage Publisher
-
processRegistryEvent
Method to pass a Registry event received on topic.- Specified by:
processRegistryEvent
in interfaceOMRSTopicListener
- Parameters:
event
- inbound event
-
processTypeDefEvent
Method to pass a Registry event received on topic.- Specified by:
processTypeDefEvent
in interfaceOMRSTopicRepositoryEventListener
- Parameters:
event
- inbound event
-
processInstanceEvent
Unpack and deliver an instance event to the InstanceEventProcessor- Specified by:
processInstanceEvent
in interfaceOMRSTopicRepositoryEventListener
- Parameters:
instanceEvent
- event to unpack
-