Class AssetAnalysisClient
java.lang.Object
org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
org.odpi.openmetadata.engineservices.assetanalysis.client.AssetAnalysisClient
- All Implemented Interfaces:
org.odpi.openmetadata.engineservices.assetanalysis.api.AssetAnalysisAPI
public class AssetAnalysisClient
extends org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
implements org.odpi.openmetadata.engineservices.assetanalysis.api.AssetAnalysisAPI
AssetAnalysisClient is a client-side library for calling a specific discovery engine with an engine host server.
-
Constructor Summary
ConstructorsConstructorDescriptionAssetAnalysisClient(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. -
Method Summary
Modifier and TypeMethodDescriptiondiscoverAsset(String userId, String assetGUID, String discoveryRequestType) Request the execution of a discovery service to explore a specific asset.discoverAsset(String userId, String assetGUID, String discoveryRequestType, Map<String, String> analysisParameters) Request the execution of a discovery service to explore a specific asset.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.org.odpi.openmetadata.frameworks.discovery.properties.AnnotationgetAnnotation(String userId, String annotationGUID) Retrieve a single annotation by unique identifier.org.odpi.openmetadata.frameworks.discovery.properties.DiscoveryAnalysisReportgetDiscoveryReport(String userId, String discoveryRequestGUID) Request the discovery report for a discovery request that has completed.List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation>getDiscoveryReportAnnotations(String userId, String discoveryRequestGUID, int startingFrom, int maximumResults) Return the annotations linked direction to the report.org.odpi.openmetadata.frameworks.discovery.properties.DiscoveryRequestStatusgetDiscoveryStatus(String userId, String discoveryRequestGUID) Request the status of an executing discovery request.List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation>getExtendedAnnotations(String userId, String annotationGUID, int startingFrom, int maximumResults) Return any annotations attached to this annotation.voidscanAllAssets(String userId, String discoveryRequestType, Map<String, String> analysisParameters, List<String> annotationTypes) Explore each of the assets in the asset store.org.odpi.openmetadata.commonservices.ffdc.properties.ConnectorReportvalidateConnector(String userId, String connectorProviderClassName) Validate the connector and return its connector type.
-
Constructor Details
-
AssetAnalysisClient
public AssetAnalysisClient(String serverPlatformRootURL, String serverName, String discoveryEngineName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a client-side object for calling a discovery engine.- Parameters:
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.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.
-
AssetAnalysisClient
public AssetAnalysisClient(String serverPlatformRootURL, String serverName, String discoveryEngineName, String userId, String password) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a client-side object for calling a discovery engine.- Parameters:
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 request- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.
-
-
Method Details
-
validateConnector
public org.odpi.openmetadata.commonservices.ffdc.properties.ConnectorReport validateConnector(String userId, String connectorProviderClassName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Validate the connector and return its connector type.- Specified by:
validateConnectorin interfaceorg.odpi.openmetadata.engineservices.assetanalysis.api.AssetAnalysisAPI- Parameters:
userId- calling userconnectorProviderClassName- name of a specific connector or null for all connectors- Returns:
- connector report for this connector
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the connector provider class name is not a valid connector fo this serviceorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the integration service
-
discoverAsset
public String discoverAsset(String userId, String assetGUID, String discoveryRequestType) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException Request the execution of a discovery service to explore a specific asset.- Specified by:
discoverAssetin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryEngine- Parameters:
userId- identifier of calling userassetGUID- identifier of the asset to analyze.discoveryRequestType- identifier of the type of analysis - this determines which discovery service to run.- Returns:
- unique id for the discovery request.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException- there was a problem detected by the discovery engine.
-
discoverAsset
public String discoverAsset(String userId, String assetGUID, String discoveryRequestType, Map<String, String> analysisParameters) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineExceptionRequest the execution of a discovery service to explore a specific asset.- Specified by:
discoverAssetin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryEngine- Parameters:
userId- 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 analysis- Returns:
- unique id for the discovery request.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException- there was a problem detected by the discovery engine.
-
discoverAsset
public String discoverAsset(String userId, String assetGUID, String discoveryRequestType, Map<String, String> analysisParameters, List<String> annotationTypes) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineExceptionRequest the execution of a discovery service to explore a specific asset.- Specified by:
discoverAssetin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryEngine- Parameters:
userId- 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)- Returns:
- unique id for the discovery request.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException- there was a problem detected by the discovery engine.
-
scanAllAssets
public void scanAllAssets(String userId, String discoveryRequestType, Map<String, String> analysisParameters, List<String> annotationTypes) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineExceptionExplore each of the assets in the asset store. A new instance of the discovery service is started for each retrieved asset.- Specified by:
scanAllAssetsin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryEngine- Parameters:
userId- 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)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException- there was a problem detected by the discovery engine.
-
getDiscoveryStatus
public org.odpi.openmetadata.frameworks.discovery.properties.DiscoveryRequestStatus getDiscoveryStatus(String userId, String discoveryRequestGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException Request the status of an executing discovery request.- Specified by:
getDiscoveryStatusin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryEngine- Parameters:
userId- identifier of calling userdiscoveryRequestGUID- identifier of the discovery request.- Returns:
- status enum
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException- there was a problem detected by the discovery engine.
-
getDiscoveryReport
public org.odpi.openmetadata.frameworks.discovery.properties.DiscoveryAnalysisReport getDiscoveryReport(String userId, String discoveryRequestGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException Request the discovery report for a discovery request that has completed.- Specified by:
getDiscoveryReportin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryEngine- Parameters:
userId- identifier of calling userdiscoveryRequestGUID- identifier of the discovery request.- Returns:
- discovery report
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException- there was a problem detected by the discovery engine.
-
getDiscoveryReportAnnotations
public List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation> getDiscoveryReportAnnotations(String userId, String discoveryRequestGUID, int startingFrom, int maximumResults) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException Return the annotations linked direction to the report.- Specified by:
getDiscoveryReportAnnotationsin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryEngine- Parameters:
userId- 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.- Returns:
- list of annotations
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException- there was a problem detected by the discovery engine.
-
getExtendedAnnotations
public List<org.odpi.openmetadata.frameworks.discovery.properties.Annotation> getExtendedAnnotations(String userId, String annotationGUID, int startingFrom, int maximumResults) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException Return any annotations attached to this annotation.- Specified by:
getExtendedAnnotationsin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryEngine- Parameters:
userId- identifier of calling userannotationGUID- anchor annotationstartingFrom- starting position in the listmaximumResults- maximum number of annotations that can be returned.- Returns:
- list of Annotation objects
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException- there was a problem detected by the discovery engine.
-
getAnnotation
public org.odpi.openmetadata.frameworks.discovery.properties.Annotation getAnnotation(String userId, String annotationGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException Retrieve a single annotation by unique identifier. This call is typically used to retrieve the latest values for an annotation.- Specified by:
getAnnotationin classorg.odpi.openmetadata.frameworks.discovery.DiscoveryEngine- Parameters:
userId- identifier of calling userannotationGUID- unique identifier of the annotation- Returns:
- Annotation object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.discovery.ffdc.DiscoveryEngineException- there was a problem detected by the discovery engine.
-