public class AssetLineageOMRSTopicListener extends Object implements OMRSTopicListener
| Constructor and Description |
|---|
AssetLineageOMRSTopicListener(Connection assetLineageOutTopic,
OMRSRepositoryValidator repositoryValidator,
OMRSRepositoryHelper repositoryHelper,
String componentName,
List<String> supportedZones,
OMRSAuditLog auditLog,
String serverUserName,
String serverName)
The constructor is given the connection to the out topic for Asset Lineage OMAS
along with classes for testing and manipulating instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processInstanceEvent(OMRSInstanceEvent instanceEvent)
Unpack and deliver an instance event to the InstanceEventProcessor
|
void |
processNewEntityEvent(EntityDetail entityDetail,
String serviceOperationName)
Takes the entity from NEW ENTITY EVENT and process the event if the type is
of specific Types that Asset Lineage OMAS is interested in processing
|
void |
processRegistryEvent(OMRSRegistryEvent event)
Method to pass a Registry event received on topic.
|
void |
processRelationship(Relationship relationship,
String serviceOperationName) |
void |
processTypeDefEvent(OMRSTypeDefEvent event)
Method to pass a Registry event received on topic.
|
public AssetLineageOMRSTopicListener(Connection assetLineageOutTopic, OMRSRepositoryValidator repositoryValidator, OMRSRepositoryHelper repositoryHelper, String componentName, List<String> supportedZones, OMRSAuditLog auditLog, String serverUserName, String serverName) throws OMAGConfigurationErrorException
assetLineageOutTopic - connection to the out topicrepositoryValidator - provides validation of metadata instancerepositoryHelper - helper object for building and querying TypeDefs and metadata instancescomponentName - name of componentsupportedZones - list of zones covered by this instance of the access service.auditLog - log for errors and information messagesserverUserName - name of the user of the server instanceserverName - name of this server instanceOMAGConfigurationErrorExceptionpublic void processRegistryEvent(OMRSRegistryEvent event)
processRegistryEvent in interface OMRSTopicListenerevent - inbound eventpublic void processTypeDefEvent(OMRSTypeDefEvent event)
processTypeDefEvent in interface OMRSTopicListenerevent - inbound eventpublic void processInstanceEvent(OMRSInstanceEvent instanceEvent)
processInstanceEvent in interface OMRSTopicListenerinstanceEvent - event to unpackpublic void processNewEntityEvent(EntityDetail entityDetail, String serviceOperationName)
entityDetail - event to validateserviceOperationName - name of the calling operationpublic void processRelationship(Relationship relationship, String serviceOperationName)
relationship - - details of the new relationshipserviceOperationName - name of the calling operationCopyright © 2018–2019 ODPi. All rights reserved.