public class AssetLineagePublisher extends Object
| Constructor and Description |
|---|
AssetLineagePublisher(OpenMetadataTopicConnector outTopicConnector,
String serverName,
String serverUserName,
Map<String,Object> accessServiceOptions)
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 |
publishAssetContextEvent(RelationshipsContext assetContext)
Publishes a
LineageRelationshipsEvent containing a LineageRelationship |
void |
publishClassificationContext(EntityDetail entityDetail,
AssetLineageEventType assetLineageEventType) |
void |
publishEvent(AssetLineageEventHeader event)
Output a new asset event.
|
com.google.common.collect.Multimap<String,RelationshipsContext> |
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 |
publishLineageMappingRelationshipEvent(LineageRelationship lineageRelationship,
AssetLineageEventType eventType)
Publishes a
LineageRelationshipEvent containing a LineageRelationship. |
void |
publishLineageRelationshipEvent(LineageRelationship lineageRelationship,
AssetLineageEventType eventType)
Publishes a
LineageRelationshipEvent containing a LineageRelationship |
void |
publishLineageSummaryEvent(LineagePublishSummary summary)
Publish LineageSyncEvent that contains LineagePublishSummary details.
|
com.google.common.collect.Multimap<String,RelationshipsContext> |
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, Map<String,Object> accessServiceOptions) throws OCFCheckedExceptionBase
outTopicConnector - connection to the out topicserverName - name of the user of the server instanceserverUserName - name of this server instanceOCFCheckedExceptionBasepublic com.google.common.collect.Multimap<String,RelationshipsContext> 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 com.google.common.collect.Multimap<String,RelationshipsContext> 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 publishAssetContextEvent(RelationshipsContext assetContext) throws ConnectorCheckedException, com.fasterxml.jackson.core.JsonProcessingException
LineageRelationshipsEvent containing a LineageRelationshipassetContext - the LineageRelationship to be publishedConnectorCheckedException - 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 publishLineageSummaryEvent(LineagePublishSummary summary) throws com.fasterxml.jackson.core.JsonProcessingException, ConnectorCheckedException
summary - details about lineage processing and publish activity completed by Asset Lineage OMAS.com.fasterxml.jackson.core.JsonProcessingExceptionConnectorCheckedExceptionpublic 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 void publishLineageMappingRelationshipEvent(LineageRelationship lineageRelationship, AssetLineageEventType eventType) throws OCFCheckedExceptionBase, com.fasterxml.jackson.core.JsonProcessingException
LineageRelationshipEvent containing a LineageRelationship. For each end of the relationship it publishes a
LineageRelationshipsEvent containing the column context if availablelineageRelationship - 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 jsonOCFCheckedExceptionBasepublic boolean isEntityEligibleForPublishing(EntityDetail entityDetail) throws OCFCheckedExceptionBase
entityDetail - entity to be checkedUserNotAuthorizedException - security access problemPropertyServerException - problem accessing property serverOCFCheckedExceptionBaseCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.