public abstract class SQLFirehoseDatabaseConnector extends Object
| Constructor and Description |
|---|
SQLFirehoseDatabaseConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.dbcp2.BasicDataSource |
getDatasource(MetadataStorageConnectorConfig connectorConfig) |
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)
public String getValidationQuery()
public abstract org.skife.jdbi.v2.DBI getDBI()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.