java.lang.Object
org.odpi.openmetadata.governanceservers.integrationdaemonservices.registration.IntegrationServiceRegistry

public class IntegrationServiceRegistry extends Object
IntegrationServiceRegistry maintains the list of registered integration services and the mapping to the specialized context manager/integration connector APIs.
  • Constructor Details

    • IntegrationServiceRegistry

      public IntegrationServiceRegistry()
  • Method Details

    • registerIntegrationService

      public static void registerIntegrationService(IntegrationServiceDescription serviceDescription, String contextManagerClassName, String connectorClassName)
      Register an Open Metadata Integration service (OMIS) with the OMAG Server Platform. This call is triggered when the OMIS is loaded into the OMAG Server Platform as part of the Spring Component Scan.
      Parameters:
      serviceDescription - description of the OMIS
      contextManagerClassName - name of the class that implements a specialized context for the connectors.
      connectorClassName - name of the specialized connector interface that supports the specialized context. This is implemented by the integration connector and links it to a specific integration service.
    • getRegisteredServiceURLMarkers

      public static List<String> getRegisteredServiceURLMarkers()
      Return a map from service-url-root to the context manager class name.
      Returns:
      list of registered OMIS serviceURLMarkers
    • getIntegrationServiceConfig

      public static IntegrationServiceConfig getIntegrationServiceConfig(String serviceURLMarker, String serverName, String methodName) throws InvalidParameterException
      Retrieve a partially filled configuration properties object for an integration service. It needs the connections for the integration connectors to be added. Called from admin services.
      Parameters:
      serviceURLMarker - URL marker to identify the service
      serverName - and of server being configured
      methodName - calling method
      Returns:
      partially filled configuration for the named integration service
      Throws:
      InvalidParameterException - the service URL marker is not recognized
    • getRegisteredIntegrationServices

      public static List<RegisteredOMAGService> getRegisteredIntegrationServices()
      Return descriptions for the list of registered OMISs for this platform. Returned to external caller.
      Returns:
      list of service descriptions
    • getIntegrationServiceURLMarker

      Retrieve the service URL marker for a specific integration connector.
      Parameters:
      connectorProviderClassName - the name of the connector provider's class
      Returns:
      context manager that matches the capabilities of the connector
      Throws:
      ConnectionCheckedException - the connection passed to the connector provider is not valid
      ConnectorCheckedException - the connector is not valid
      ClassNotFoundException - when the provided class cannot be found
      InstantiationException - when the provided class cannot be instantiated
      IllegalAccessException - when there is insufficient access to instantiate the provided class
      NoSuchMethodException - the default constructor is missing
      InvocationTargetException - unable to call the default constructor