Interface IntegrationDaemonAPI
- All Known Implementing Classes:
IntegrationDaemon
public interface IntegrationDaemonAPI
IntegrationDaemonAPI is the interface to control and monitor an integration daemon. The integration daemon is an OMAG Server.
It runs one-to-many integration services that in turn manage one-to-many integration connectors. Each integration service
focuses on a particular type of third party technology and is paired with an appropriate OMAS.
The refresh commands are used to instruct the connectors running in the integration daemon to verify the consistency
of the metadata in the third party technology against the values in open metadata. All connectors are requested
to refresh when the integration daemon first starts. Then refresh is called on the schedule defined in the configuration
and lastly as a result of calls to this API.
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationProperties
(String userId, String connectorName) Retrieve the configuration properties of the named connector.getIntegrationDaemonStatus
(String userId) Return a summary of each of the integration services' and integration groups' status.getIntegrationGroupSummaries
(String userId) Retrieve the description and status of all configured integration groups.getIntegrationGroupSummary
(String userId, String integrationGroupName) Retrieve the description and status of the requested integration group.Return a summary of each of the integration services' status.void
refreshConfig
(String userId, String integrationGroupName) Request that the integration group refresh its configuration by calling the metadata server.void
refreshService
(String userId, String serviceURLMarker, String connectorName) Refresh the requested connectors running in the requested integration service.void
restartService
(String userId, String serviceURLMarker, String connectorName) Request that the integration service shutdown and recreate its integration connectors.void
updateConfigurationProperties
(String userId, String connectorName, boolean isMergeUpdate, Map<String, Object> configurationProperties) Update the configuration properties of the connectors, or specific connector if a connector name is supplied.
-
Method Details
-
getConfigurationProperties
Map<String,Object> getConfigurationProperties(String userId, String connectorName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the configuration properties of the named connector.- Parameters:
userId
- calling userconnectorName
- name of a requested connector- Returns:
- property map
- Throws:
InvalidParameterException
- the connector name is not recognizedUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- there was a problem detected by the integration daemon
-
updateConfigurationProperties
void updateConfigurationProperties(String userId, String connectorName, boolean isMergeUpdate, Map<String, Object> configurationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionUpdate the configuration properties of the connectors, or specific connector if a connector name is supplied.- Parameters:
userId
- calling userconnectorName
- name of a specific connector or null for all connectorsisMergeUpdate
- should the properties be merged into the existing properties or replace themconfigurationProperties
- new configuration properties- Throws:
InvalidParameterException
- the connector name is not recognizedUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- there was a problem detected by the integration daemon
-
refreshService
void refreshService(String userId, String serviceURLMarker, String connectorName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Refresh the requested connectors running in the requested integration service.- Parameters:
userId
- calling userserviceURLMarker
- integration service identifierconnectorName
- optional name of the connector to target - if no connector name is specified, all connectors managed by this integration service are refreshed.- Throws:
InvalidParameterException
- one of the parameters is null or invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- there was a problem detected by the integration daemon
-
restartService
void restartService(String userId, String serviceURLMarker, String connectorName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request that the integration service shutdown and recreate its integration connectors. If a connector name is provided, only that connector is restarted.- Parameters:
userId
- calling userserviceURLMarker
- integration service identifierconnectorName
- optional name of the connector to target - if no connector name is specified, all connectors managed by this integration service are restarted.- Throws:
InvalidParameterException
- one of the parameters is null or invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- there was a problem detected by the integration daemon
-
getIntegrationDaemonStatus
IntegrationDaemonStatus getIntegrationDaemonStatus(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return a summary of each of the integration services' and integration groups' status.- Parameters:
userId
- calling user- Returns:
- list of statuses - on for each assigned integration services or integration group
- Throws:
InvalidParameterException
- one of the parameters is null or invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- there was a problem detected by the integration daemon
-
getIntegrationServicesSummaries
List<IntegrationServiceSummary> getIntegrationServicesSummaries(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return a summary of each of the integration services' status.- Parameters:
userId
- calling user- Returns:
- list of statuses - on for each assigned integration services
- Throws:
InvalidParameterException
- one of the parameters is null or invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- there was a problem detected by the integration daemon
-
getIntegrationGroupSummary
IntegrationGroupSummary getIntegrationGroupSummary(String userId, String integrationGroupName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the description and status of the requested integration group.- Parameters:
userId
- calling userintegrationGroupName
- qualifiedName of the integration group to target- Returns:
- integration group summary
- Throws:
InvalidParameterException
- no available instance for the requested serverUserNotAuthorizedException
- user does not have access to the requested serverPropertyServerException
- the service name is not known - indicating a logic error
-
getIntegrationGroupSummaries
List<IntegrationGroupSummary> getIntegrationGroupSummaries(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the description and status of all configured integration groups.- Parameters:
userId
- calling user- Returns:
- list of integration group summaries
- Throws:
InvalidParameterException
- no available instance for the requested serverUserNotAuthorizedException
- user does not have access to the requested serverPropertyServerException
- the service name is not known - indicating a logic error
-
refreshConfig
void refreshConfig(String userId, String integrationGroupName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request that the integration group refresh its configuration by calling the metadata server. This request is useful if the metadata server has an outage, particularly while the integration daemon is initializing. This request just ensures that the latest configuration is in use.- Parameters:
userId
- identifier of calling userintegrationGroupName
- qualifiedName of the integration group to target- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- there was a problem detected by the integration group.
-