Class ITInfrastructureOutTopicPublisher

java.lang.Object
org.odpi.openmetadata.accessservices.itinfrastructure.outtopic.ITInfrastructureOutTopicPublisher

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

    Constructors
    Constructor
    Description
    ITInfrastructureOutTopicPublisher(org.odpi.openmetadata.accessservices.itinfrastructure.connectors.outtopic.ITInfrastructureOutTopicServerConnector outTopicServerConnector, String outTopicName, org.odpi.openmetadata.frameworks.auditlog.AuditLog outTopicAuditLog, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
    Constructor for the publisher.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Shutdown the publishing process.
    void
    publishEntityEvent(org.odpi.openmetadata.accessservices.itinfrastructure.events.ITInfrastructureEventType eventType, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail previousEntity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification newClassification, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification previousClassification)
    Send the event to the embedded event bus connector(s).
    void
    publishEntityEvent(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.accessservices.itinfrastructure.events.ITInfrastructureEventType eventType)
    Send the event to the embedded event bus connector(s).

    Methods inherited from class java.lang.Object

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

    • ITInfrastructureOutTopicPublisher

      public ITInfrastructureOutTopicPublisher(org.odpi.openmetadata.accessservices.itinfrastructure.connectors.outtopic.ITInfrastructureOutTopicServerConnector outTopicServerConnector, String outTopicName, org.odpi.openmetadata.frameworks.auditlog.AuditLog outTopicAuditLog, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
      Constructor for the publisher.
      Parameters:
      outTopicServerConnector - connector to the out topic
      outTopicName - name of the out topic
      outTopicAuditLog - logging destination if anything goes wrong.
      repositoryHelper - helper object to parse entity/relationship objects
      serviceName - name of this component
      serverName - local server name
  • Method Details

    • publishEntityEvent

      public void publishEntityEvent(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.accessservices.itinfrastructure.events.ITInfrastructureEventType eventType)
      Send the event to the embedded event bus connector(s).
      Parameters:
      entity - entity that is the subject of the event
      eventType - type of event
    • publishEntityEvent

      public void publishEntityEvent(org.odpi.openmetadata.accessservices.itinfrastructure.events.ITInfrastructureEventType eventType, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail previousEntity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification newClassification, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification previousClassification)
      Send the event to the embedded event bus connector(s).
      Parameters:
      entity - entity that is the subject of the event
      previousEntity - previous version of the entity
      eventType - type of event
      newClassification - latest classification information (if the event relates to a classification)
      previousClassification - previous classification information (if the event relates to a classification)
    • disconnect

      public void disconnect()
      Shutdown the publishing process.