Class JDBCClient
java.lang.Object
org.apache.skywalking.oap.server.library.client.jdbc.hikaricp.JDBCClient
- All Implemented Interfaces:
Client,HealthCheckable
JDBC Client uses HikariCP connection management lib to execute SQL.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()void<T> TexecuteQuery(String sql, JDBCClient.ResultHandler<T> resultHandler, Object... params) intexecuteUpdate(String sql, Object... params) Default getConnection is set in auto-commit.getConnection(boolean autoCommit) getTableColumns(String table) booleanindexExists(String table, String index) voidregisterChecker(HealthChecker healthChecker) Register health checker.voidshutdown()booleantableExists(String table)
-
Constructor Details
-
JDBCClient
-
-
Method Details
-
connect
public void connect() -
shutdown
public void shutdown() -
getConnection
Default getConnection is set in auto-commit.- Throws:
SQLException
-
getConnection
- Throws:
SQLException
-
execute
- Throws:
SQLException
-
executeUpdate
- Throws:
SQLException
-
executeQuery
public <T> T executeQuery(String sql, JDBCClient.ResultHandler<T> resultHandler, Object... params) throws SQLException - Throws:
SQLException
-
registerChecker
Description copied from interface:HealthCheckableRegister health checker.- Specified by:
registerCheckerin interfaceHealthCheckable- Parameters:
healthChecker- HealthChecker to be registered.
-
indexExists
- Throws:
SQLException
-
tableExists
- Throws:
SQLException
-
getTableColumns
- Throws:
SQLException
-