java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
org.odpi.openmetadata.accessservices.stewardshipaction.client.ConnectedAssetClient
All Implemented Interfaces:
ConnectorFactoryInterface

public class ConnectedAssetClient extends ConnectedAssetClientBase
ConnectedAssetClient is used by applications and tools as a factory for Open Connector Framework (OCF) connectors. The configuration for the connectors is managed as open metadata in a Connection definition. The caller to the ConnectedAssetClient passes either the name, GUID or URL for the connection to the appropriate method to retrieve a connector. The ConnectedAssetClient retrieves the connection from the metadata repository and creates an appropriate connector as described the connection and returns it to the caller. The ConnectedAssetClient supports access to the asset properties through the connector.
  • Constructor Details

    • ConnectedAssetClient

      public ConnectedAssetClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws 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:
      InvalidParameterException - null URL or server name
    • ConnectedAssetClient

      public ConnectedAssetClient(String serverName, String serverPlatformURLRoot) throws 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:
      InvalidParameterException - null URL or server name
    • ConnectedAssetClient

      public ConnectedAssetClient(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws 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:
      InvalidParameterException - null URL or server name
    • ConnectedAssetClient

      public ConnectedAssetClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws 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:
      InvalidParameterException - null URL or server name