Class IntegrationServiceRegistry
java.lang.Object
org.odpi.openmetadata.governanceservers.integrationdaemonservices.registration.IntegrationServiceRegistry
IntegrationServiceRegistry maintains the list of registered integration services and the mapping to the specialized context manager/integration
connector APIs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntegrationServiceConfig
getIntegrationServiceConfig
(String serviceURLMarker, String serverName, String methodName) Retrieve a partially filled configuration properties object for an integration service.static String
getIntegrationServiceURLMarker
(String connectorProviderClassName) Retrieve the service URL marker for a specific integration connector.static List<RegisteredOMAGService>
Return descriptions for the list of registered OMISs for this platform.Return a map from service-url-root to the context manager class name.static void
registerIntegrationService
(IntegrationServiceDescription serviceDescription, String contextManagerClassName, String connectorClassName) Register an Open Metadata Integration service (OMIS) with the OMAG Server Platform.
-
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 OMIScontextManagerClassName
- 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
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 serviceserverName
- and of server being configuredmethodName
- calling method- Returns:
- partially filled configuration for the named integration service
- Throws:
InvalidParameterException
- the service URL marker is not recognized
-
getRegisteredIntegrationServices
Return descriptions for the list of registered OMISs for this platform. Returned to external caller.- Returns:
- list of service descriptions
-
getIntegrationServiceURLMarker
public static String getIntegrationServiceURLMarker(String connectorProviderClassName) throws ConnectionCheckedException, ConnectorCheckedException, ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException 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 validConnectorCheckedException
- the connector is not validClassNotFoundException
- when the provided class cannot be foundInstantiationException
- when the provided class cannot be instantiatedIllegalAccessException
- when there is insufficient access to instantiate the provided classNoSuchMethodException
- the default constructor is missingInvocationTargetException
- unable to call the default constructor
-