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(DataManagerOutTopicServerConnector outTopicServerConnector, String outTopicName, AuditLog outTopicAuditLog)Constructor for the publisher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisconnect()Shutdown the publishing process.voidsendEntityEvent(DataManagerOutboundEventType eventType, String elementGUID, String elementTypeName, String classificationName, ElementStub elementStub)Send an event that relates to an entity.voidsendRelationshipEvent(DataManagerOutboundEventType eventType, String relationshipGUID, String relationshipTypeName, ElementStub relationshipElementStub, ElementStub endOneElementStub, ElementStub endTwoElementStub)Send an event that relates to a relationship.
-
-
-
Constructor Detail
-
DataManagerOutTopicPublisher
public DataManagerOutTopicPublisher(DataManagerOutTopicServerConnector outTopicServerConnector, String outTopicName, AuditLog outTopicAuditLog)
Constructor for the publisher.- Parameters:
outTopicServerConnector- connector to the out topicoutTopicName- name of the out topicoutTopicAuditLog- logging destination if anything goes wrong.
-
-
Method Detail
-
sendEntityEvent
public void sendEntityEvent(DataManagerOutboundEventType eventType, String elementGUID, String elementTypeName, String classificationName, ElementStub elementStub)
Send an event that relates to an entity.- Parameters:
eventType- type of change to the entityelementGUID- unique identifier for the entityelementTypeName- type of entityclassificationName- if a classification has changed this identifies which classificationelementStub- encoded header of the entity
-
sendRelationshipEvent
public void sendRelationshipEvent(DataManagerOutboundEventType eventType, String relationshipGUID, String relationshipTypeName, ElementStub relationshipElementStub, ElementStub endOneElementStub, ElementStub endTwoElementStub)
Send an event that relates to a relationship.- Parameters:
eventType- type of change to the relationshiprelationshipGUID- unique identifier for the relationshiprelationshipTypeName- type of relationshiprelationshipElementStub- encoded header of the relationshipendOneElementStub- encoded header of the entity at end 1 of the relationshipendTwoElementStub- encoded header of the entity at end 2 of the relationship
-
disconnect
public void disconnect()
Shutdown the publishing process.
-
-