Pause connector reference¶
Database objects and procedures¶
The following database objects are created through the file lifecycle/pause.sql.
PUBLIC.PAUSE_CONNECTOR()¶
Entry point procedure available to the ADMIN role. This procedure invokes the Java function PauseConnectorHandler.pauseConnector.
PUBLIC.PAUSE_CONNECTOR_VALIDATE()¶
Procedure used for connector specific validation of pausing process. By default, it returns 'response_code': 'OK'.
It is invoked by DefaultPauseConnectorStateValidator. Can be overwritten both in SQL and Java.
PUBLIC.PAUSE_CONNECTOR_INTERNAL()¶
Procedure used for connector specific additional pausing duties. By default, it returns 'response_code': 'OK'.
It is invoked by InternalPauseConnectorCallback. Can be overwritten both in SQL and Java.
Custom handler¶
The handler and its internals can be customized using the following two approaches.
Procedure replacement approach¶
The following components can be replaced using SQL.
Handler¶
To provide whole custom implementation of PauseConnectorHandler, the PUBLIC.PAUSE_CONNECTOR procedure must be replaced. For example:
Internal procedures¶
Internal VALIDATE and INTERNAL procedures can be also customized through the SQL. They can also invoke another Java handler:
Builder approach¶
PauseConnectorHandler can be customized using PauseConnectorHandlerBuilder. This builder allows user to provide custom implementations of the following interfaces:
PauseConnectorStateValidatorPauseConnectorCallbackConnectorErrorHelper
In case a function is not provided the default implementation provided by the SDK will be used.