Class AssetManagerOutTopicPublisher
java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.outtopic.AssetManagerOutTopicPublisher
AssetManagerOutTopicPublisher is responsible for sending events on the Asset Manager OMAS's out topic.
It is called from the Asset Manager OMAS's OMRS Topic Listener.
-
Constructor Summary
ConstructorsConstructorDescriptionAssetManagerOutTopicPublisher(org.odpi.openmetadata.accessservices.assetmanager.connectors.outtopic.AssetManagerOutTopicServerConnector 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 TypeMethodDescriptionvoidShutdown the publishing process.voidpublishEntityEvent(org.odpi.openmetadata.accessservices.assetmanager.events.AssetManagerEventType 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).voidpublishEntityEvent(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.accessservices.assetmanager.events.AssetManagerEventType eventType) Send the event to the embedded event bus connector(s).voidpublishRelationshipEvent(org.odpi.openmetadata.accessservices.assetmanager.events.AssetManagerEventType eventType, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship previousRelationship, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail end1, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail end2) Send the event to the embedded event bus connector(s).
-
Constructor Details
-
AssetManagerOutTopicPublisher
public AssetManagerOutTopicPublisher(org.odpi.openmetadata.accessservices.assetmanager.connectors.outtopic.AssetManagerOutTopicServerConnector 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 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 Details
-
publishEntityEvent
public void publishEntityEvent(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity, org.odpi.openmetadata.accessservices.assetmanager.events.AssetManagerEventType 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(org.odpi.openmetadata.accessservices.assetmanager.events.AssetManagerEventType 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 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)
-
publishRelationshipEvent
public void publishRelationshipEvent(org.odpi.openmetadata.accessservices.assetmanager.events.AssetManagerEventType eventType, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship previousRelationship, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail end1, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail end2) Send the event to the embedded event bus connector(s).- Parameters:
eventType- type of eventrelationship- relationship that is the subject of the eventpreviousRelationship- previous version of the relationshipend1- entity from end 1 of the relationshipend2- entity from end 2 of the relationship
-
disconnect
public void disconnect()Shutdown the publishing process.
-