Package ghidra.features.bsim.query
Interface BSimJDBCDataSource
- All Known Implementing Classes:
BSimH2FileDBConnectionManager.BSimH2FileDataSource
,BSimPostgresDBConnectionManager.BSimPostgresDataSource
public interface BSimJDBCDataSource
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose pooled datasource.int
Get the number of active connections in the associated connection poolGet DBConnection
object performing any required authentication.int
Get the number of idle connections in the associated connection poolGet the server info that corresponds to this data source.
-
Method Details
-
getStatus
FunctionDatabase.Status getStatus() -
getConnection
Get DBConnection
object performing any required authentication.- Returns:
Connection
object- Throws:
SQLException
- if connection fails
-
getConnectionType
FunctionDatabase.ConnectionType getConnectionType() -
getServerInfo
BSimServerInfo getServerInfo()Get the server info that corresponds to this data source. It is important to note that the returned instance is normalized for the purpose of caching and may not match the original server info object used to obtain this data source instance.- Returns:
- server info
-
getActiveConnections
int getActiveConnections()Get the number of active connections in the associated connection pool- Returns:
- number of active connections
-
getIdleConnections
int getIdleConnections()Get the number of idle connections in the associated connection pool- Returns:
- number of idle connections
-
dispose
void dispose()Dispose pooled datasource.
-