public class AssetAnalysisClient extends DiscoveryEngine implements AssetAnalysisAPI
| Constructor and Description |
|---|
AssetAnalysisClient(String serverPlatformRootURL,
String serverName,
String discoveryEngineName)
Create a client-side object for calling a discovery engine.
|
AssetAnalysisClient(String serverPlatformRootURL,
String serverName,
String discoveryEngineName,
String userId,
String password)
Create a client-side object for calling a discovery engine.
|
| Modifier and Type | Method and Description |
|---|---|
String |
discoverAsset(String userId,
String assetGUID,
String discoveryRequestType)
Request the execution of a discovery service to explore a specific asset.
|
String |
discoverAsset(String userId,
String assetGUID,
String discoveryRequestType,
Map<String,String> analysisParameters)
Request the execution of a discovery service to explore a specific asset.
|
String |
discoverAsset(String userId,
String assetGUID,
String discoveryRequestType,
Map<String,String> analysisParameters,
List<String> annotationTypes)
Request the execution of a discovery service to explore a specific asset.
|
Annotation |
getAnnotation(String userId,
String annotationGUID)
Retrieve a single annotation by unique identifier.
|
DiscoveryAnalysisReport |
getDiscoveryReport(String userId,
String discoveryRequestGUID)
Request the discovery report for a discovery request that has completed.
|
List<Annotation> |
getDiscoveryReportAnnotations(String userId,
String discoveryRequestGUID,
int startingFrom,
int maximumResults)
Return the annotations linked direction to the report.
|
DiscoveryRequestStatus |
getDiscoveryStatus(String userId,
String discoveryRequestGUID)
Request the status of an executing discovery request.
|
List<Annotation> |
getExtendedAnnotations(String userId,
String annotationGUID,
int startingFrom,
int maximumResults)
Return any annotations attached to this annotation.
|
void |
scanAllAssets(String userId,
String discoveryRequestType,
Map<String,String> analysisParameters,
List<String> annotationTypes)
Explore each of the assets in the asset store.
|
ConnectorType |
validateConnector(String userId,
String connectorProviderClassName)
Validate the connector and return its connector type.
|
public AssetAnalysisClient(String serverPlatformRootURL, String serverName, String discoveryEngineName) throws InvalidParameterException
serverPlatformRootURL - the root url of the platform where the discovery engine is running.serverName - the name of the engine host server where the discovery engine is runningdiscoveryEngineName - the unique name of the discovery engine.InvalidParameterException - one of the parameters is null or invalid.public AssetAnalysisClient(String serverPlatformRootURL, String serverName, String discoveryEngineName, String userId, String password) throws InvalidParameterException
serverPlatformRootURL - the root url of the platform where the discovery engine is running.serverName - the name of the engine host server where the discovery engine is runningdiscoveryEngineName - the unique name of the discovery engine.userId - user id for the HTTP requestpassword - password for the HTTP requestInvalidParameterException - one of the parameters is null or invalid.public ConnectorType validateConnector(String userId, String connectorProviderClassName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
validateConnector in interface AssetAnalysisAPIuserId - calling userconnectorProviderClassName - name of a specific connector or null for all connectorsInvalidParameterException - the connector provider class name is not a valid connector fo this serviceUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - there was a problem detected by the integration servicepublic String discoverAsset(String userId, String assetGUID, String discoveryRequestType) throws InvalidParameterException, UserNotAuthorizedException, DiscoveryEngineException
discoverAsset in class DiscoveryEngineuserId - identifier of calling userassetGUID - identifier of the asset to analyze.discoveryRequestType - identifier of the type of analysis - this determines which discovery service to run.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.DiscoveryEngineException - there was a problem detected by the discovery engine.public String discoverAsset(String userId, String assetGUID, String discoveryRequestType, Map<String,String> analysisParameters) throws InvalidParameterException, UserNotAuthorizedException, DiscoveryEngineException
discoverAsset in class DiscoveryEngineuserId - identifier of calling userassetGUID - identifier of the asset to analyze.discoveryRequestType - identifier of the type of analysis - this determines which discovery service to run.analysisParameters - name value properties to control the analysisInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.DiscoveryEngineException - there was a problem detected by the discovery engine.public String discoverAsset(String userId, String assetGUID, String discoveryRequestType, Map<String,String> analysisParameters, List<String> annotationTypes) throws InvalidParameterException, UserNotAuthorizedException, DiscoveryEngineException
discoverAsset in class DiscoveryEngineuserId - identifier of calling userassetGUID - identifier of the asset to analyze.discoveryRequestType - identifier of the type of analysis - this determines which discovery service to run.analysisParameters - name value properties to control the analysisannotationTypes - list of the types of annotations to produce (and no others)InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.DiscoveryEngineException - there was a problem detected by the discovery engine.public void scanAllAssets(String userId, String discoveryRequestType, Map<String,String> analysisParameters, List<String> annotationTypes) throws InvalidParameterException, UserNotAuthorizedException, DiscoveryEngineException
scanAllAssets in class DiscoveryEngineuserId - identifier of calling userdiscoveryRequestType - identifier of the type of analysis - this determines which discovery service to run.analysisParameters - name value properties to control the analysisannotationTypes - list of the types of annotations to produce (and no others)InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.DiscoveryEngineException - there was a problem detected by the discovery engine.public DiscoveryRequestStatus getDiscoveryStatus(String userId, String discoveryRequestGUID) throws InvalidParameterException, UserNotAuthorizedException, DiscoveryEngineException
getDiscoveryStatus in class DiscoveryEngineuserId - identifier of calling userdiscoveryRequestGUID - identifier of the discovery request.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.DiscoveryEngineException - there was a problem detected by the discovery engine.public DiscoveryAnalysisReport getDiscoveryReport(String userId, String discoveryRequestGUID) throws InvalidParameterException, UserNotAuthorizedException, DiscoveryEngineException
getDiscoveryReport in class DiscoveryEngineuserId - identifier of calling userdiscoveryRequestGUID - identifier of the discovery request.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.DiscoveryEngineException - there was a problem detected by the discovery engine.public List<Annotation> getDiscoveryReportAnnotations(String userId, String discoveryRequestGUID, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, DiscoveryEngineException
getDiscoveryReportAnnotations in class DiscoveryEngineuserId - identifier of calling userdiscoveryRequestGUID - identifier of the discovery request.startingFrom - initial position in the stored list.maximumResults - maximum number of definitions to return on this call.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.DiscoveryEngineException - there was a problem detected by the discovery engine.public List<Annotation> getExtendedAnnotations(String userId, String annotationGUID, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, DiscoveryEngineException
getExtendedAnnotations in class DiscoveryEngineuserId - identifier of calling userannotationGUID - anchor annotationstartingFrom - starting position in the listmaximumResults - maximum number of annotations that can be returned.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.DiscoveryEngineException - there was a problem detected by the discovery engine.public Annotation getAnnotation(String userId, String annotationGUID) throws InvalidParameterException, UserNotAuthorizedException, DiscoveryEngineException
getAnnotation in class DiscoveryEngineuserId - identifier of calling userannotationGUID - unique identifier of the annotationInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.DiscoveryEngineException - there was a problem detected by the discovery engine.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.