Class DigitalArchitectureOutTopicPublisher
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.digitalarchitecture.outtopic.DigitalArchitectureOutTopicPublisher
-
public class DigitalArchitectureOutTopicPublisher extends Object
DigitalArchitectureOutTopicPublisher 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 DigitalArchitectureOutTopicPublisher(DigitalArchitectureOutTopicServerConnector outTopicServerConnector, String outTopicName, AuditLog outTopicAuditLog, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)Constructor for the publisher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisconnect()Shutdown the publishing process.voidpublishEntityEvent(DigitalArchitectureEventType eventType, EntityDetail entity, EntityDetail previousEntity, Classification newClassification, Classification previousClassification)Send the event to the embedded event bus connector(s).voidpublishEntityEvent(EntityDetail entity, DigitalArchitectureEventType eventType)Send the event to the embedded event bus connector(s).
-
-
-
Constructor Detail
-
DigitalArchitectureOutTopicPublisher
public DigitalArchitectureOutTopicPublisher(DigitalArchitectureOutTopicServerConnector outTopicServerConnector, String outTopicName, AuditLog outTopicAuditLog, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
Constructor for the publisher.- Parameters:
outTopicServerConnector- connector to the out topicoutTopicName- name of the out topicoutTopicAuditLog- logging destination if anything goes wrong.repositoryHelper- helper object to parse entity/relationship objectsserviceName- name of this componentserverName- local server name
-
-
Method Detail
-
publishEntityEvent
public void publishEntityEvent(EntityDetail entity, DigitalArchitectureEventType eventType)
Send the event to the embedded event bus connector(s).- Parameters:
entity- entity that is the subject of the eventeventType- type of event
-
publishEntityEvent
public void publishEntityEvent(DigitalArchitectureEventType eventType, EntityDetail entity, EntityDetail previousEntity, Classification newClassification, Classification previousClassification)
Send the event to the embedded event bus connector(s).- Parameters:
entity- entity that is the subject of the eventpreviousEntity- previous version of the entityeventType- type of eventnewClassification- 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.
-
-