Source:
public void start(Map<String, String> properties) throws ConnectException { log.info("Starting JDBC Source"); try { configProperties = properties; config = new JdbcSourceConnectorConfig(configProperties); } catch (ConfigException e) { throw new ConnectException("Couldn't start JdbcSourceConnector due to configuration error", e); } final String dbUrl = config.getString(JdbcSourceConnectorConfig.CONNECTION_URL_CONFIG); final int maxConnectionAttempts = config.getInt( JdbcSourceConnectorConfig.CONNECTION_ATTEMPTS_CONFIG ); final long connectionRetryBackoff = config.getLong( JdbcSourceConnectorConfig.CONNECTION_BACKOFF_CONFIG ); dialect = DatabaseDialects.findBestFor( dbUrl, config ); cachedConnectionProvider = new CachedConnectionProvider( dialect, maxConnectionAttempts, connectionRetryBackoff ); cachedConnectionProvider.getConnection(); long tablePollMs = config.getLong(JdbcSourceConnectorConfig.TABLE_POLL_INTERVAL_MS_CONFIG); List<String> whitelist = config.getList(JdbcSourceConnectorConfig.TABLE_WHITELIST_CONFIG); Set<String> whitelistSet = whitelist.isEmpty() ? null : new HashSet<>(whitelist); List<String> blacklist = config.getList(JdbcSourceConnectorConfig.TABLE_BLACKLIST_CONFIG); Set<String> blacklistSet = blacklist.isEmpty() ? null : new HashSet<>(blacklist); if (whitelistSet != null && blacklistSet != null) { throw new ConnectException(JdbcSourceConnectorConfig.TABLE_WHITELIST_CONFIG + " and " + JdbcSourceConnectorConfig.TABLE_BLACKLIST_CONFIG + " are " + "exclusive."); } String query = config.getString(JdbcSourceConnectorConfig.QUERY_CONFIG); if (!query.isEmpty()) { if (whitelistSet != null || blacklistSet != null) { throw new ConnectException(JdbcSourceConnectorConfig.QUERY_CONFIG + " may not be combined" + " with whole-table copying settings."); } whitelistSet = Collections.emptySet(); } tableMonitorThread = new TableMonitorThread( dialect, cachedConnectionProvider, context, tablePollMs, whitelistSet, blacklistSet ); tableMonitorThread.start(); }

Target:
public void start(Map<String, String> properties) throws ConnectException { log.info("Starting JDBC Source Connector"); try { configProperties = properties; config = new JdbcSourceConnectorConfig(configProperties); } catch (ConfigException e) { throw new ConnectException("Couldn't start JdbcSourceConnector due to configuration error", e); } final String dbUrl = config.getString(JdbcSourceConnectorConfig.CONNECTION_URL_CONFIG); final int maxConnectionAttempts = config.getInt( JdbcSourceConnectorConfig.CONNECTION_ATTEMPTS_CONFIG ); final long connectionRetryBackoff = config.getLong( JdbcSourceConnectorConfig.CONNECTION_BACKOFF_CONFIG ); dialect = DatabaseDialects.findBestFor( dbUrl, config ); cachedConnectionProvider = new CachedConnectionProvider( dialect, maxConnectionAttempts, connectionRetryBackoff ); cachedConnectionProvider.getConnection(); long tablePollMs = config.getLong(JdbcSourceConnectorConfig.TABLE_POLL_INTERVAL_MS_CONFIG); List<String> whitelist = config.getList(JdbcSourceConnectorConfig.TABLE_WHITELIST_CONFIG); Set<String> whitelistSet = whitelist.isEmpty() ? null : new HashSet<>(whitelist); List<String> blacklist = config.getList(JdbcSourceConnectorConfig.TABLE_BLACKLIST_CONFIG); Set<String> blacklistSet = blacklist.isEmpty() ? null : new HashSet<>(blacklist); if (whitelistSet != null && blacklistSet != null) { throw new ConnectException(JdbcSourceConnectorConfig.TABLE_WHITELIST_CONFIG + " and " + JdbcSourceConnectorConfig.TABLE_BLACKLIST_CONFIG + " are " + "exclusive."); } String query = config.getString(JdbcSourceConnectorConfig.QUERY_CONFIG); if (!query.isEmpty()) { if (whitelistSet != null || blacklistSet != null) { throw new ConnectException(JdbcSourceConnectorConfig.QUERY_CONFIG + " may not be combined" + " with whole-table copying settings."); } whitelistSet = Collections.emptySet(); } tableMonitorThread = new TableMonitorThread( dialect, cachedConnectionProvider, context, tablePollMs, whitelistSet, blacklistSet ); tableMonitorThread.start(); }