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 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 running
      discoveryEngineName - 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 running
      discoveryEngineName - the unique name of the discovery engine.
      userId - user id for the HTTP request
      password - 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:
      validateConnector in interface org.odpi.openmetadata.engineservices.assetanalysis.api.AssetAnalysisAPI
      Parameters:
      userId - calling user
      connectorProviderClassName - 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 service
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.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:
      discoverAsset in class org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
      Parameters:
      userId - identifier of calling user
      assetGUID - 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.DiscoveryEngineException
      Request the execution of a discovery service to explore a specific asset.
      Specified by:
      discoverAsset in class org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
      Parameters:
      userId - identifier of calling user
      assetGUID - 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.DiscoveryEngineException
      Request the execution of a discovery service to explore a specific asset.
      Specified by:
      discoverAsset in class org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
      Parameters:
      userId - identifier of calling user
      assetGUID - 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
      annotationTypes - 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.DiscoveryEngineException
      Explore each of the assets in the asset store. A new instance of the discovery service is started for each retrieved asset.
      Specified by:
      scanAllAssets in class org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
      Parameters:
      userId - identifier of calling user
      discoveryRequestType - identifier of the type of analysis - this determines which discovery service to run.
      analysisParameters - name value properties to control the analysis
      annotationTypes - 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:
      getDiscoveryStatus in class org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
      Parameters:
      userId - identifier of calling user
      discoveryRequestGUID - 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:
      getDiscoveryReport in class org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
      Parameters:
      userId - identifier of calling user
      discoveryRequestGUID - 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:
      getDiscoveryReportAnnotations in class org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
      Parameters:
      userId - identifier of calling user
      discoveryRequestGUID - 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:
      getExtendedAnnotations in class org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
      Parameters:
      userId - identifier of calling user
      annotationGUID - anchor annotation
      startingFrom - starting position in the list
      maximumResults - 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:
      getAnnotation in class org.odpi.openmetadata.frameworks.discovery.DiscoveryEngine
      Parameters:
      userId - identifier of calling user
      annotationGUID - 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.