Class AssetConsumerPublisher
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.outtopic.AssetConsumerPublisher
-
public class AssetConsumerPublisher extends Object
AssetConsumerPublisher is the connector responsible for publishing information about new and changed assets.
-
-
Constructor Summary
Constructors Constructor Description AssetConsumerPublisher(AssetConsumerOutTopicServerConnector 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.voidpublishNewAssetEvent(NewAssetEvent event)Output a new asset event.voidpublishUpdatedAssetEvent(UpdatedAssetEvent event)Output an updated asset event.
-
-
-
Constructor Detail
-
AssetConsumerPublisher
public AssetConsumerPublisher(AssetConsumerOutTopicServerConnector 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
-
publishNewAssetEvent
public void publishNewAssetEvent(NewAssetEvent event)
Output a new asset event.- Parameters:
event- event to send
-
publishUpdatedAssetEvent
public void publishUpdatedAssetEvent(UpdatedAssetEvent event)
Output an updated asset event.- Parameters:
event- event to send.
-
disconnect
public void disconnect()
Shutdown the publishing process.
-
-