Package ghidra.features.bsim.query
Interface BSimJDBCDataSource
- All Known Implementing Classes:
 BSimH2FileDBConnectionManager.BSimH2FileDataSource,BSimPostgresDBConnectionManager.BSimPostgresDataSource
public interface BSimJDBCDataSource
- 
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose pooled datasource.intGet the number of active connections in the associated connection poolGet DBConnectionobject performing any required authentication.intGet 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 DBConnectionobject performing any required authentication.- Returns:
 Connectionobject- 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. 
 -