public class AssetLineagePublisher extends Object
| Constructor and Description |
|---|
AssetLineagePublisher(OpenMetadataTopicConnector outTopicConnector,
String serverName,
String serverUserName)
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 |
|---|---|
boolean |
isEntityEligibleForPublishing(EntityDetail entityDetail)
Checks if the entity is eligible to be send in a lineage event.
|
void |
publishClassificationContext(EntityDetail entityDetail,
AssetLineageEventType assetLineageEventType) |
void |
publishEvent(AssetLineageEventHeader event)
Output a new asset event.
|
Map<String,Set<GraphContext>> |
publishGlossaryContext(EntityDetail entityDetail)
Build the context for a Glossary Term and publishes the event to the out topic
|
void |
publishGlossaryContext(String glossaryTermGUID)
Build the context for a Glossary Term based on the glossary term GUID and publishes the event to the out topic
|
void |
publishLineageEntityEvent(LineageEntity lineageEntity,
AssetLineageEventType lineageEventType)
Publish lineage entity event
|
void |
publishLineageRelationshipEvent(LineageRelationship lineageRelationship,
AssetLineageEventType eventType)
Publishes a
LineageRelationshipEvent containing a LineageRelationship |
Map<String,Set<GraphContext>> |
publishProcessContext(EntityDetail entityDetail)
Takes the context for a Process and publishes the event to the output topic
|
public AssetLineagePublisher(OpenMetadataTopicConnector outTopicConnector, String serverName, String serverUserName) throws OCFCheckedExceptionBase
outTopicConnector - connection to the out topicserverName - name of the user of the server instanceserverUserName - name of this server instanceOCFCheckedExceptionBasepublic Map<String,Set<GraphContext>> publishProcessContext(EntityDetail entityDetail) throws OCFCheckedExceptionBase, com.fasterxml.jackson.core.JsonProcessingException
entityDetail - entity to get contextOCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectorscom.fasterxml.jackson.core.JsonProcessingException - exception parsing the event jsonpublic void publishGlossaryContext(String glossaryTermGUID) throws OCFCheckedExceptionBase, com.fasterxml.jackson.core.JsonProcessingException
glossaryTermGUID - glossary term GUID to get contextOCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectorscom.fasterxml.jackson.core.JsonProcessingException - exception parsing the event jsonpublic Map<String,Set<GraphContext>> publishGlossaryContext(EntityDetail entityDetail) throws OCFCheckedExceptionBase, com.fasterxml.jackson.core.JsonProcessingException
entityDetail - glossary term to get contextOCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectorscom.fasterxml.jackson.core.JsonProcessingException - exception parsing the event jsonpublic void publishClassificationContext(EntityDetail entityDetail, AssetLineageEventType assetLineageEventType) throws OCFCheckedExceptionBase, com.fasterxml.jackson.core.JsonProcessingException
entityDetail - entity to get contextassetLineageEventType - event type to get publishedOCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectorscom.fasterxml.jackson.core.JsonProcessingException - exception parsing the event jsonpublic void publishLineageRelationshipEvent(LineageRelationship lineageRelationship, AssetLineageEventType eventType) throws ConnectorCheckedException, com.fasterxml.jackson.core.JsonProcessingException
LineageRelationshipEvent containing a LineageRelationshiplineageRelationship - the LineageRelationship to be publishedeventType - the type on the eventConnectorCheckedException - unable to send the event due to connectivity issuecom.fasterxml.jackson.core.JsonProcessingException - exception parsing the event jsonpublic void publishEvent(AssetLineageEventHeader event) throws com.fasterxml.jackson.core.JsonProcessingException, ConnectorCheckedException
event - event to sendConnectorCheckedException - unable to send the event due to connectivity issuecom.fasterxml.jackson.core.JsonProcessingException - exception parsing the event jsonpublic void publishLineageEntityEvent(LineageEntity lineageEntity, AssetLineageEventType lineageEventType) throws ConnectorCheckedException, com.fasterxml.jackson.core.JsonProcessingException
lineageEntity - - lineage entitylineageEventType - - lineage event typeConnectorCheckedException - unable to send the event due to connectivity issuecom.fasterxml.jackson.core.JsonProcessingException - exception parsing the event jsonpublic boolean isEntityEligibleForPublishing(EntityDetail entityDetail) throws UserNotAuthorizedException, PropertyServerException
entityDetail - entity to be checkedUserNotAuthorizedException - security access problemPropertyServerException - problem accessing property serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.