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(Connection assetConsumerOutTopic, AuditLog auditLog)The constructor is given the connection to the out topic for Asset Consumer OMAS along with classes for testing and manipulating instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpublishNewAssetEvent(NewAssetEvent event)Output a new asset event.voidpublishUpdatedAssetEvent(UpdatedAssetEvent event)Output an updated asset event.
-
-
-
Constructor Detail
-
AssetConsumerPublisher
public AssetConsumerPublisher(Connection assetConsumerOutTopic, AuditLog auditLog) throws OMAGConfigurationErrorException
The constructor is given the connection to the out topic for Asset Consumer OMAS along with classes for testing and manipulating instances.- Parameters:
assetConsumerOutTopic- connection to the out topicauditLog- log file for the connector.- Throws:
OMAGConfigurationErrorException- problems creating the connector for the outTopic
-
-
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.
-
-