Package org.apache.druid.metadata
Class SQLFirehoseDatabaseConnector
- java.lang.Object
-
- org.apache.druid.metadata.SQLFirehoseDatabaseConnector
-
public abstract class SQLFirehoseDatabaseConnector extends Object
-
-
Constructor Summary
Constructors Constructor Description SQLFirehoseDatabaseConnector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Set<String>findPropertyKeysFromConnectURL(String connectUri, boolean allowUnknown)Extract property keys from the given JDBC URL.protected org.apache.commons.dbcp2.BasicDataSourcegetDatasource(org.apache.druid.metadata.MetadataStorageConnectorConfig connectorConfig, JdbcAccessSecurityConfig securityConfig)abstract org.skife.jdbi.v2.DBIgetDBI()StringgetValidationQuery()booleanisTransientException(Throwable e)<T> TretryWithHandle(org.skife.jdbi.v2.tweak.HandleCallback<T> callback, com.google.common.base.Predicate<Throwable> myShouldRetry)
-
-
-
Method Detail
-
retryWithHandle
public <T> T retryWithHandle(org.skife.jdbi.v2.tweak.HandleCallback<T> callback, com.google.common.base.Predicate<Throwable> myShouldRetry)
-
isTransientException
public final boolean isTransientException(Throwable e)
-
getDatasource
protected org.apache.commons.dbcp2.BasicDataSource getDatasource(org.apache.druid.metadata.MetadataStorageConnectorConfig connectorConfig, JdbcAccessSecurityConfig securityConfig)
-
getValidationQuery
public String getValidationQuery()
-
getDBI
public abstract org.skife.jdbi.v2.DBI getDBI()
-
-