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.
Related tables and views¶
The pause connector is related to and dependent on the objects from the following files:
core.sql(See Core SQL reference)configuration/app_config.sql(See: App config SQL reference)configuration/finalize_configuration.sql(See Finalize configuration reference)
Related Java objects¶
The following Java objects from the com.snowflake.connectors.application.lifecycle package and some common components are tightly connected with the above procedures:
PauseConnectorHandlerPauseConnectorStateValidatorPauseConnectorCallbackConnectorStatusServiceLifecycleServiceConnectorErrorHelper
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.