Class AssetLineageOMRSTopicListener
java.lang.Object
org.odpi.openmetadata.accessservices.assetlineage.listeners.AssetLineageOMRSTopicListener
- All Implemented Interfaces:
org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListener,org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicRepositoryEventListener
public class AssetLineageOMRSTopicListener
extends Object
implements org.odpi.openmetadata.repositoryservices.connectors.omrstopic.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
ConstructorsConstructorDescriptionAssetLineageOMRSTopicListener(Converter converter, String serverName, AssetLineagePublisher publisher, AssetLineageTypesValidator assetLineageTypesValidator, org.odpi.openmetadata.frameworks.auditlog.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 PublishervoidprocessInstanceEvent(org.odpi.openmetadata.repositoryservices.events.OMRSInstanceEvent instanceEvent) Unpack and deliver an instance event to the InstanceEventProcessorvoidprocessRegistryEvent(org.odpi.openmetadata.repositoryservices.events.OMRSRegistryEvent event) Method to pass a Registry event received on topic.voidprocessTypeDefEvent(org.odpi.openmetadata.repositoryservices.events.OMRSTypeDefEvent event) Method to pass a Registry event received on topic.
-
Constructor Details
-
AssetLineageOMRSTopicListener
public AssetLineageOMRSTopicListener(Converter converter, String serverName, AssetLineagePublisher publisher, AssetLineageTypesValidator assetLineageTypesValidator, org.odpi.openmetadata.frameworks.auditlog.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 Lineage Warehouse 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
public void processRegistryEvent(org.odpi.openmetadata.repositoryservices.events.OMRSRegistryEvent event) Method to pass a Registry event received on topic.- Specified by:
processRegistryEventin interfaceorg.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListener- Parameters:
event- inbound event
-
processTypeDefEvent
public void processTypeDefEvent(org.odpi.openmetadata.repositoryservices.events.OMRSTypeDefEvent event) Method to pass a Registry event received on topic.- Specified by:
processTypeDefEventin interfaceorg.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicRepositoryEventListener- Parameters:
event- inbound event
-
processInstanceEvent
public void processInstanceEvent(org.odpi.openmetadata.repositoryservices.events.OMRSInstanceEvent instanceEvent) Unpack and deliver an instance event to the InstanceEventProcessor- Specified by:
processInstanceEventin interfaceorg.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicRepositoryEventListener- Parameters:
instanceEvent- event to unpack
-