Class AssetConsumerOMRSTopicListener
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListenerBase
-
- org.odpi.openmetadata.accessservices.assetconsumer.listener.AssetConsumerOMRSTopicListener
-
- All Implemented Interfaces:
OMRSTopicListener
public class AssetConsumerOMRSTopicListener extends OMRSTopicListenerBase
AssetConsumerOMRSTopicListener received details of each OMRS event from the cohorts that the local server is connected to. It passes NEW_ENTITY_EVENTs to the publisher.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListenerBase
auditLog, serviceName
-
-
Constructor Summary
Constructors Constructor Description AssetConsumerOMRSTopicListener(Connection assetConsumerOutTopic, OMRSRepositoryHelper repositoryHelper, OMRSRepositoryValidator repositoryValidator, String componentName, String serverName, List<String> supportedZones, 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 voidprocessInstanceEvent(OMRSInstanceEvent instanceEvent)Unpack and deliver an instance event to the InstanceEventProcessor-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListenerBase
getInstanceTypeName, processAttributeTypeDefConflictEvent, processBadConnectionEvent, processClassifiedEntityEvent, processClassifiedEntityEvent, processConflictingCollectionIdEvent, processConflictingInstancesEvent, processConflictingTypeEvent, processDeclassifiedEntityEvent, processDeclassifiedEntityEvent, processDeletedAttributeTypeDefEvent, processDeletedEntityEvent, processDeletedRelationshipEvent, processDeletedTypeDefEvent, processDeletePurgedEntityEvent, processDeletePurgedRelationshipEvent, processInstanceBatchEvent, processNewAttributeTypeDefEvent, processNewEntityEvent, processNewRelationshipEvent, processNewTypeDefEvent, processPurgedEntityEvent, processPurgedRelationshipEvent, processReclassifiedEntityEvent, processReclassifiedEntityEvent, processRefreshEntityEvent, processRefreshEntityRequested, processRefreshRelationshipEvent, processRefreshRelationshipRequest, processRegistrationEvent, processRegistrationRefreshRequest, processRegistryEvent, processReHomedEntityEvent, processReHomedRelationshipEvent, processReIdentifiedAttributeTypeDefEvent, processReIdentifiedEntityEvent, processReIdentifiedRelationshipEvent, processReIdentifiedTypeDefEvent, processReRegistrationEvent, processRestoredEntityEvent, processRestoredRelationshipEvent, processReTypedEntityEvent, processReTypedRelationshipEvent, processTypeDefConflictEvent, processTypeDefEvent, processTypeDefPatchMismatchEvent, processUndoneEntityEvent, processUndoneRelationshipEvent, processUnRegistrationEvent, processUpdatedEntityEvent, processUpdatedRelationshipEvent, processUpdatedTypeDefEvent
-
-
-
-
Constructor Detail
-
AssetConsumerOMRSTopicListener
public AssetConsumerOMRSTopicListener(Connection assetConsumerOutTopic, OMRSRepositoryHelper repositoryHelper, OMRSRepositoryValidator repositoryValidator, String componentName, String serverName, List<String> supportedZones, 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 topicrepositoryHelper- provides methods for working with metadata instancesrepositoryValidator- provides validation of metadata instancecomponentName- name of componentserverName- local server namesupportedZones- list of zones covered by this instance of the access service.auditLog- log for errors and information messages- Throws:
OMAGConfigurationErrorException- problems creating the connector for the outTopic
-
-
Method Detail
-
processInstanceEvent
public void processInstanceEvent(OMRSInstanceEvent instanceEvent)
Unpack and deliver an instance event to the InstanceEventProcessor- Specified by:
processInstanceEventin interfaceOMRSTopicListener- Overrides:
processInstanceEventin classOMRSTopicListenerBase- Parameters:
instanceEvent- event to unpack
-
-