Class MetadataSourceClient

java.lang.Object
org.odpi.openmetadata.accessservices.datamanager.client.DataManagerBaseClient
org.odpi.openmetadata.accessservices.datamanager.client.MetadataSourceClient
All Implemented Interfaces:
org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface

public class MetadataSourceClient extends DataManagerBaseClient implements org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface
MetadataSourceClient is the client for setting up the SoftwareServerCapabilities that represent metadata sources.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MetadataSourceClient(String serverName, String serverPlatformURLRoot)
    Create a new client with no authentication embedded in the HTTP request.
    MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password)
    Create a new client that passes userId and password in each HTTP request.
    MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog)
    Create a new client that passes userId and password in each HTTP request.
    MetadataSourceClient(String serverName, String serverPlatformURLRoot, DataManagerRESTClient restClient, int maxPageSize)
    Create a new client that is to be used within an OMAG Server.
    MetadataSourceClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog)
    Create a new client with no authentication embedded in the HTTP request.
  • Method Summary

    Modifier and Type
    Method
    Description
    createAPIManager(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.APIManagerProperties apiManagerProperties)
    Create information about the component that manages APIs.
    createApplication(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.ApplicationProperties applicationProperties)
    Create information about an application.
    createDatabaseManager(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.DatabaseManagerProperties databaseManagerProperties)
    Create information about the integration daemon that is managing the acquisition of metadata from the data manager.
    createDataProcessingEngine(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.DataProcessingEngineProperties engineProperties)
    Create information about a data processing engine - set up typeName in the properties to create subtypes such as ReportingEngine, WorkflowEngine, AnalyticsEngine, DataMovementEngine or DataVirtualizationEngine.
    createEventBroker(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.EventBrokerProperties eventBrokerProperties)
    Create information about the integration daemon that is managing the acquisition of metadata from the data manager.
    createFileManager(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.FileManagerProperties fileManagerProperties)
    Create information about an application that manages a collection of data files.
    createFileSystem(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.FileSystemProperties fileSystemProperties)
    Create information about a File System that is being used to store data files.
    getMetadataSourceGUID(String userId, String qualifiedName)
    Retrieve the unique identifier of the data manager.

    Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.client.DataManagerBaseClient

    removeReferenceable

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • MetadataSourceClient

      public MetadataSourceClient(String serverName, String serverPlatformURLRoot, DataManagerRESTClient restClient, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client that is to be used within an OMAG Server.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      restClient - pre-initialized REST client
      maxPageSize - pre-initialized parameter limit
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem with the information about the remote OMAS
  • Method Details

    • createAPIManager

      public String createAPIManager(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.APIManagerProperties apiManagerProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create information about the component that manages APIs.
      Specified by:
      createAPIManager in interface org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
      externalSourceName - name of the software server capability entity that represented the external source
      apiManagerProperties - description of the API manager (specify qualified name at a minimum)
      Returns:
      unique identifier of the API manager's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • createDatabaseManager

      public String createDatabaseManager(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.DatabaseManagerProperties databaseManagerProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create information about the integration daemon that is managing the acquisition of metadata from the data manager. Typically, this is Egeria's data manager integrator OMIS.
      Specified by:
      createDatabaseManager in interface org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
      externalSourceName - name of the software server capability entity that represented the external source
      databaseManagerProperties - description of the integration daemon (specify qualified name at a minimum)
      Returns:
      unique identifier of the integration daemon's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • createEventBroker

      public String createEventBroker(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.EventBrokerProperties eventBrokerProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create information about the integration daemon that is managing the acquisition of metadata from the data manager. Typically, this is Egeria's data manager proxy.
      Specified by:
      createEventBroker in interface org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
      externalSourceName - name of the software server capability entity that represented the external source
      eventBrokerProperties - description of the event broker (specify qualified name at a minimum)
      Returns:
      unique identifier of the event broker's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • createFileSystem

      public String createFileSystem(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.FileSystemProperties fileSystemProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create information about a File System that is being used to store data files.
      Specified by:
      createFileSystem in interface org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
      externalSourceName - name of the software server capability entity that represented the external source
      fileSystemProperties - description of the file system
      Returns:
      unique identifier of the file system's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • createFileManager

      public String createFileManager(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.FileManagerProperties fileManagerProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create information about an application that manages a collection of data files.
      Specified by:
      createFileManager in interface org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
      externalSourceName - name of the software server capability entity that represented the external source
      fileManagerProperties - description of the
      Returns:
      unique identifier of the file manager's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • createApplication

      public String createApplication(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.ApplicationProperties applicationProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create information about an application.
      Specified by:
      createApplication in interface org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
      externalSourceName - name of the software server capability entity that represented the external source
      applicationProperties - description of the application (specify qualified name at a minimum)
      Returns:
      unique identifier of the application's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • createDataProcessingEngine

      public String createDataProcessingEngine(String userId, String externalSourceGUID, String externalSourceName, org.odpi.openmetadata.frameworks.openmetadata.properties.softwarecapabilities.DataProcessingEngineProperties engineProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create information about a data processing engine - set up typeName in the properties to create subtypes such as ReportingEngine, WorkflowEngine, AnalyticsEngine, DataMovementEngine or DataVirtualizationEngine.
      Specified by:
      createDataProcessingEngine in interface org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      externalSourceGUID - guid of the software server capability entity that represented the external source - null for local
      externalSourceName - name of the software server capability entity that represented the external source
      engineProperties - description of the engine (specify qualified name at a minimum)
      Returns:
      unique identifier of the engine's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
    • getMetadataSourceGUID

      public String getMetadataSourceGUID(String userId, String qualifiedName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the unique identifier of the data manager.
      Specified by:
      getMetadataSourceGUID in interface org.odpi.openmetadata.accessservices.datamanager.api.MetadataSourceInterface
      Parameters:
      userId - calling user
      qualifiedName - unique name of the integration daemon
      Returns:
      unique identifier of the data manager's software server capability
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - the bean properties are invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - user not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server