public class DataManagerOutTopicPublisher extends Object
| Constructor and Description |
|---|
DataManagerOutTopicPublisher(DataManagerOutTopicServerConnector outTopicServerConnector,
String outTopicName,
AuditLog outTopicAuditLog)
Constructor for the publisher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Shutdown the publishing process.
|
void |
sendEntityEvent(DataManagerOutboundEventType eventType,
String elementGUID,
String elementTypeName,
String classificationName,
ElementStub elementStub)
Send an event that relates to an entity.
|
void |
sendRelationshipEvent(DataManagerOutboundEventType eventType,
String relationshipGUID,
String relationshipTypeName,
ElementStub relationshipElementStub,
ElementStub endOneElementStub,
ElementStub endTwoElementStub)
Send an event that relates to a relationship.
|
public DataManagerOutTopicPublisher(DataManagerOutTopicServerConnector outTopicServerConnector, String outTopicName, AuditLog outTopicAuditLog)
outTopicServerConnector - connector to the out topicoutTopicName - name of the out topicoutTopicAuditLog - logging destination if anything goes wrong.public void sendEntityEvent(DataManagerOutboundEventType eventType, String elementGUID, String elementTypeName, String classificationName, ElementStub elementStub)
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 entitypublic void sendRelationshipEvent(DataManagerOutboundEventType eventType, String relationshipGUID, String relationshipTypeName, ElementStub relationshipElementStub, ElementStub endOneElementStub, ElementStub endTwoElementStub)
eventType - type of change to the relationshiprelationshipGUID - unique identifier for the relationshiprelationshipTypeName - type of relationshiprelationshipElementStub - encoded header of the relationshipendTwoElementStub - encoded header of the entity at end 1 of the relationshipendTwoElementStub - encoded header of the entity at end 2 of the relationshippublic void disconnect()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.