Class IntegrationDaemonRESTServices
java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.governanceservers.integrationdaemonservices.server.IntegrationDaemonRESTServices
IntegrationDaemonRESTServices provides the external service implementation for an integration service
and integration group.
The IntegrationDaemonRESTServices locates the correct integration service/group instance within the correct
integration daemon instance and delegates the request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationProperties(String serverName, String delegatingUserId, String connectorName) Retrieve the configuration properties of the named connector.getIntegrationDaemonStatus(String serverName, String delegatingUserId) Return a summary of each of the integration services' and integration groups' status.getIntegrationGroupSummaries(String serverName, String delegatingUserId) Return a summary of each of the integration groups' status for all running engine services.getIntegrationGroupSummary(String serverName, String delegatingUserId, String integrationGroupName) Return a summary of the requested engine's status.publishOpenLineageEvent(String serverName, String delegatingUserId, String event) Pass an open lineage event to the integration service.refreshConnectors(String serverName, String delegatingUserId, NameRequestBody requestBody) Request that the integration daemon refresh all the connectors in all the integration services and groupsrefreshIntegrationGroupConfig(String serverName, String delegatingUserId, String integrationGroupName) Request that the integration group refresh its configuration by calling the metadata server.restartConnectors(String serverName, String delegatingUserId, NameRequestBody requestBody) Request that the integration daemon restart all the connectors in all the integration services and groupsupdateConfigurationProperties(String serverName, String delegatingUserId, ConnectorConfigPropertiesRequestBody requestBody) Update the configuration properties of the connectors, or specific connector if a connector name is supplied.updateConnectorConnection(String serverName, String delegatingUserId, String connectorName, Connection requestBody) Update the connection for a specific integration connector.updateEndpointNetworkAddress(String serverName, String delegatingUserId, String connectorName, StringRequestBody requestBody) Update the endpoint network address for a specific integration connector.validateConnector(String serverName, String delegatingUserId, String connectorProviderClassName) Validate the connector and return its connector type.Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenController
getUser
-
Constructor Details
-
IntegrationDaemonRESTServices
public IntegrationDaemonRESTServices()
-
-
Method Details
-
validateConnector
public ConnectorReportResponse validateConnector(String serverName, String delegatingUserId, String connectorProviderClassName) Validate the connector and return its connector type.- Parameters:
serverName- integration daemon server nameconnectorProviderClassName- name of a specific connector or null for all connectorsdelegatingUserId- external userId making request- Returns:
- connector report or InvalidParameterException the connector provider class name is not a valid connector fo this service UserNotAuthorizedException user not authorized to issue this request PropertyServerException there was a problem detected by the integration service
-
publishOpenLineageEvent
public VoidResponse publishOpenLineageEvent(String serverName, String delegatingUserId, String event) Pass an open lineage event to the integration service. It will pass it on to the integration connectors that have registered a listener for open lineage events.- Parameters:
serverName- integration daemon server namedelegatingUserId- external userId making requestevent- open lineage event to publish.
-
getConfigurationProperties
public PropertiesResponse getConfigurationProperties(String serverName, String delegatingUserId, String connectorName) Retrieve the configuration properties of the named connector.- Parameters:
serverName- integration daemon server namedelegatingUserId- external userId making requestconnectorName- name of a specific connector- Returns:
- properties map or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException there was a problem detected by the integration service.
-
updateConfigurationProperties
public VoidResponse updateConfigurationProperties(String serverName, String delegatingUserId, ConnectorConfigPropertiesRequestBody requestBody) Update the configuration properties of the connectors, or specific connector if a connector name is supplied.- Parameters:
serverName- integration daemon server namedelegatingUserId- external userId making requestrequestBody- name of a specific connector or null for all connectors and the properties to change- Returns:
- void or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException there was a problem detected by the integration service.
-
updateEndpointNetworkAddress
public VoidResponse updateEndpointNetworkAddress(String serverName, String delegatingUserId, String connectorName, StringRequestBody requestBody) Update the endpoint network address for a specific integration connector.- Parameters:
serverName- integration daemon server namedelegatingUserId- external userId making requestconnectorName- name of a specific connectorrequestBody- name of a specific connector or null for all connectors and the properties to change- Returns:
- void or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException there was a problem detected by the integration service.
-
updateConnectorConnection
public VoidResponse updateConnectorConnection(String serverName, String delegatingUserId, String connectorName, Connection requestBody) Update the connection for a specific integration connector.- Parameters:
serverName- integration daemon server namedelegatingUserId- external userId making requestconnectorName- name of a specific connectorrequestBody- new connection object- Returns:
- void or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException there was a problem detected by the integration service.
-
refreshConnectors
public VoidResponse refreshConnectors(String serverName, String delegatingUserId, NameRequestBody requestBody) Request that the integration daemon refresh all the connectors in all the integration services and groups- Parameters:
serverName- name of the integration daemondelegatingUserId- external userId making requestrequestBody- null request body- Returns:
- void or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException there was a problem detected by the integration service.
-
restartConnectors
public VoidResponse restartConnectors(String serverName, String delegatingUserId, NameRequestBody requestBody) Request that the integration daemon restart all the connectors in all the integration services and groups- Parameters:
serverName- name of the integration daemondelegatingUserId- external userId making requestrequestBody- null request body- Returns:
- void or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException there was a problem detected by the integration service.
-
getIntegrationDaemonStatus
public IntegrationDaemonStatusResponse getIntegrationDaemonStatus(String serverName, String delegatingUserId) Return a summary of each of the integration services' and integration groups' status.- Parameters:
serverName- integration daemon namedelegatingUserId- external userId making request- Returns:
- list of statuses - on for each assigned integration services or group InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException there was a problem detected by the integration daemon.
-
refreshIntegrationGroupConfig
public VoidResponse refreshIntegrationGroupConfig(String serverName, String delegatingUserId, String integrationGroupName) 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 governance server is initializing. This request just ensures that the latest configuration is in use.- Parameters:
serverName- name of the governance server.delegatingUserId- external userId making requestintegrationGroupName- unique name of the integration group.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or IntegrationGroupException there was a problem detected by the integration group.
-
getIntegrationGroupSummary
public IntegrationGroupSummaryResponse getIntegrationGroupSummary(String serverName, String delegatingUserId, String integrationGroupName) Return a summary of the requested engine's status.- Parameters:
serverName- name of the server tied to the requestdelegatingUserId- external userId making requestintegrationGroupName- qualifiedName of the requested integration group- Returns:
- list of integration group summaries or InvalidParameterException no available instance for the requested server UserNotAuthorizedException user does not have access to the requested server PropertyServerException the service name is not known - indicating a logic error
-
getIntegrationGroupSummaries
public IntegrationGroupSummariesResponse getIntegrationGroupSummaries(String serverName, String delegatingUserId) Return a summary of each of the integration groups' status for all running engine services.- Parameters:
serverName- integration daemon server namedelegatingUserId- external userId making request- Returns:
- list of statuses - on for each assigned integration groups or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or
-