Package ghidra.features.bsim.query
Class BSimPostgresDBConnectionManager.BSimPostgresDataSource
java.lang.Object
ghidra.features.bsim.query.BSimPostgresDBConnectionManager.BSimPostgresDataSource
- All Implemented Interfaces:
BSimJDBCDataSource
- Enclosing class:
BSimPostgresDBConnectionManager
public static class BSimPostgresDBConnectionManager.BSimPostgresDataSource
extends Object
implements BSimJDBCDataSource
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose pooled datasource.booleanintGet 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.inthashCode()voidvoidsetPassword(String username, char[] newPassword) Update password onBasicDataSourcefor use with future connect attempts.voidsetPreferredUserName(String userName)
-
Method Details
-
getServerInfo
Description copied from interface:BSimJDBCDataSourceGet 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.- Specified by:
getServerInfoin interfaceBSimJDBCDataSource- Returns:
- server info
-
initializeFrom
-
getUserName
-
setPreferredUserName
-
dispose
public void dispose()Description copied from interface:BSimJDBCDataSourceDispose pooled datasource.- Specified by:
disposein interfaceBSimJDBCDataSource
-
getStatus
- Specified by:
getStatusin interfaceBSimJDBCDataSource
-
getActiveConnections
public int getActiveConnections()Description copied from interface:BSimJDBCDataSourceGet the number of active connections in the associated connection pool- Specified by:
getActiveConnectionsin interfaceBSimJDBCDataSource- Returns:
- number of active connections
-
getIdleConnections
public int getIdleConnections()Description copied from interface:BSimJDBCDataSourceGet the number of idle connections in the associated connection pool- Specified by:
getIdleConnectionsin interfaceBSimJDBCDataSource- Returns:
- number of idle connections
-
setPassword
Update password onBasicDataSourcefor use with future connect attempts. Has no affect if username does not match username on data source.- Parameters:
username- usernamenewPassword- updated password
-
getConnection
Description copied from interface:BSimJDBCDataSourceGet DBConnectionobject performing any required authentication.- Specified by:
getConnectionin interfaceBSimJDBCDataSource- Returns:
Connectionobject- Throws:
SQLException- if connection fails
-
getConnectionType
- Specified by:
getConnectionTypein interfaceBSimJDBCDataSource
-
equals
-
hashCode
public int hashCode()
-