Class DataManagerOutTopicPublisher

java.lang.Object
org.odpi.openmetadata.accessservices.datamanager.outtopic.DataManagerOutTopicPublisher

public class DataManagerOutTopicPublisher extends Object
DataManagerOutTopicPublisher is responsible for sending events on the Data Manager OMAS's out topic. It is called from the Data Manager OMAS's OMRS Topic Listener.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataManagerOutTopicPublisher(org.odpi.openmetadata.accessservices.datamanager.connectors.outtopic.DataManagerOutTopicServerConnector outTopicServerConnector, String outTopicName, org.odpi.openmetadata.frameworks.auditlog.AuditLog outTopicAuditLog)
    Constructor for the publisher.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Shutdown the publishing process.
    void
    sendEntityEvent(org.odpi.openmetadata.accessservices.datamanager.events.DataManagerOutboundEventType eventType, String elementGUID, String elementTypeName, String classificationName, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub elementStub)
    Send an event that relates to an entity.
    void
    sendRelationshipEvent(org.odpi.openmetadata.accessservices.datamanager.events.DataManagerOutboundEventType eventType, String relationshipGUID, String relationshipTypeName, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub relationshipElementStub, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub endOneElementStub, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub endTwoElementStub)
    Send an event that relates to a relationship.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DataManagerOutTopicPublisher

      public DataManagerOutTopicPublisher(org.odpi.openmetadata.accessservices.datamanager.connectors.outtopic.DataManagerOutTopicServerConnector outTopicServerConnector, String outTopicName, org.odpi.openmetadata.frameworks.auditlog.AuditLog outTopicAuditLog)
      Constructor for the publisher.
      Parameters:
      outTopicServerConnector - connector to the out topic
      outTopicName - name of the out topic
      outTopicAuditLog - logging destination if anything goes wrong.
  • Method Details

    • sendEntityEvent

      public void sendEntityEvent(org.odpi.openmetadata.accessservices.datamanager.events.DataManagerOutboundEventType eventType, String elementGUID, String elementTypeName, String classificationName, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub elementStub)
      Send an event that relates to an entity.
      Parameters:
      eventType - type of change to the entity
      elementGUID - unique identifier for the entity
      elementTypeName - type of entity
      classificationName - if a classification has changed this identifies which classification
      elementStub - encoded header of the entity
    • sendRelationshipEvent

      public void sendRelationshipEvent(org.odpi.openmetadata.accessservices.datamanager.events.DataManagerOutboundEventType eventType, String relationshipGUID, String relationshipTypeName, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub relationshipElementStub, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub endOneElementStub, org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub endTwoElementStub)
      Send an event that relates to a relationship.
      Parameters:
      eventType - type of change to the relationship
      relationshipGUID - unique identifier for the relationship
      relationshipTypeName - type of relationship
      relationshipElementStub - encoded header of the relationship
      endOneElementStub - encoded header of the entity at end 1 of the relationship
      endTwoElementStub - encoded header of the entity at end 2 of the relationship
    • disconnect

      public void disconnect()
      Shutdown the publishing process.