public class AssetLineageRestServices extends Object
| Constructor and Description |
|---|
AssetLineageRestServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GUIDListResponse |
publishAssetContext(String serverName,
String userId,
String entityType,
String guid)
Publish asset context on the Out Topic.
|
GUIDListResponse |
publishEntities(String serverName,
String userId,
String entityType,
FindEntitiesParameters findEntitiesParameters)
//TODO: To be renamed to publishLineage()
publishLineage interface is used to request lineage related metadata to be sent out on-demand for scenarios such as initial load of metadata or pull based changes.
|
GUIDListResponse |
publishEntity(String serverName,
String userId,
String entityType,
String guid)
Find the entity the element with the provided guid and the given type
Publish the context for the entity on the AL OMAS out Topic
|
public GUIDListResponse publishEntities(String serverName, String userId, String entityType, FindEntitiesParameters findEntitiesParameters)
CompletableFuture
How it works:
Based on the findEntitiesParameters provided, scans the cohort for the given type and finds list of matching entities.
Providing updatedAfter filed in findEntitiesParameters will retrieve only the entities that were changed from that point in time.
Once entities are found, it spins up *asynchronous* background task that will build the lineage context and publish respective output as events on the asset-lineage output topic.
Note that only single background task can be active at given time (per server instance controlled by `publishLineageTaskActive`). All subsequent requests will result in empty response until the task if finished.
At the end lineage sync event is published to notify the external systems sending summary of the work completed.serverName - name of server instance to calluserId - the name of the calling userentityType - the type of the entity to search forfindEntitiesParameters - filtering used to reduce the scope of the searchpublic GUIDListResponse publishEntity(String serverName, String userId, String entityType, String guid)
serverName - name of server instance to calluserId - the name of the calling userentityType - the type of the entity to search forguid - the guid of the searched entitypublic GUIDListResponse publishAssetContext(String serverName, String userId, String entityType, String guid)
serverName - the server nameuserId - the user identityType - the entity typeguid - the GUID of the entity for which the context is publishedCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.