Class AssetConsumerPublisher


  • public class AssetConsumerPublisher
    extends Object
    AssetConsumerPublisher is the connector responsible for publishing information about new and changed assets.
    • 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 topic
        auditLog - 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.