public class AssetLineagePublisher extends Object
| Constructor and Description |
|---|
AssetLineagePublisher(String serverName,
String serverUserName,
OMRSRepositoryHelper repositoryHelper,
OpenMetadataTopicConnector outTopicConnector)
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 |
publishAssetContext(EntityDetail entityDetail) |
void |
publishClassificationContext(EntityDetail entityDetail) |
void |
publishEvent(AssetLineageEventHeader event)
Output a new asset event.
|
void |
publishProcessContext(EntityDetail entityDetail)
Takes the context for a Process and publishes the event to the Cohort
|
public AssetLineagePublisher(String serverName, String serverUserName, OMRSRepositoryHelper repositoryHelper, OpenMetadataTopicConnector outTopicConnector) throws OCFCheckedExceptionBase
serverName - name of the user of the server instanceserverUserName - name of this server instancerepositoryHelper - outTopicConnector - connection to the out topicOCFCheckedExceptionBasepublic void publishProcessContext(EntityDetail entityDetail) throws OCFCheckedExceptionBase, com.fasterxml.jackson.core.JsonProcessingException
entityDetail - entity to get contextOCFCheckedExceptionBasecom.fasterxml.jackson.core.JsonProcessingExceptionpublic void publishAssetContext(EntityDetail entityDetail) throws OCFCheckedExceptionBase, com.fasterxml.jackson.core.JsonProcessingException
OCFCheckedExceptionBasecom.fasterxml.jackson.core.JsonProcessingExceptionpublic void publishClassificationContext(EntityDetail entityDetail) throws OCFCheckedExceptionBase, com.fasterxml.jackson.core.JsonProcessingException
OCFCheckedExceptionBasecom.fasterxml.jackson.core.JsonProcessingExceptionpublic void publishEvent(AssetLineageEventHeader event) throws com.fasterxml.jackson.core.JsonProcessingException, ConnectorCheckedException
event - event to sendcom.fasterxml.jackson.core.JsonProcessingExceptionConnectorCheckedExceptionCopyright © 2018–2020 ODPi. All rights reserved.