public abstract class SQLFirehoseDatabaseConnector extends Object
| Constructor and Description |
|---|
SQLFirehoseDatabaseConnector() |
| Modifier and Type | Method and Description |
|---|---|
abstract Set<String> |
findPropertyKeysFromConnectURL(String connectUri,
boolean allowUnknown)
Extract property keys from the given JDBC URL.
|
protected org.apache.commons.dbcp2.BasicDataSource |
getDatasource(MetadataStorageConnectorConfig connectorConfig,
JdbcAccessSecurityConfig securityConfig) |
abstract org.skife.jdbi.v2.DBI |
getDBI() |
String |
getValidationQuery() |
boolean |
isTransientException(Throwable e) |
<T> T |
retryWithHandle(org.skife.jdbi.v2.tweak.HandleCallback<T> callback,
com.google.common.base.Predicate<Throwable> myShouldRetry) |
public <T> T retryWithHandle(org.skife.jdbi.v2.tweak.HandleCallback<T> callback,
com.google.common.base.Predicate<Throwable> myShouldRetry)
public final boolean isTransientException(Throwable e)
protected org.apache.commons.dbcp2.BasicDataSource getDatasource(MetadataStorageConnectorConfig connectorConfig, JdbcAccessSecurityConfig securityConfig)
public String getValidationQuery()
public abstract org.skife.jdbi.v2.DBI getDBI()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.