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 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 format
      serverName - name of this server instance
      publisher - instance of the asset-lineage topic publisher
      assetLineageTypesValidator - service for validating types
      auditLog - logging destination
  • Method Details

    • getPublisher

      public AssetLineagePublisher 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:
      processRegistryEvent in interface org.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:
      processTypeDefEvent in interface org.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:
      processInstanceEvent in interface org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicRepositoryEventListener
      Parameters:
      instanceEvent - event to unpack