DBParam is used to set the several parameters to get the BangDB Environment. Some of the parameters are host ip, port, ssl/non-ssl, transaction type etc. Client connecting with each different DBs will have separate DBParams.
C++
Java
To get the DB Param environment
DBParam();
To set host IP
voidsetHost(constchar*host);
To set PORT on which server will be running
voidsetPort(constchar*port);
To set path to bangdb.config file
voidsetDbConfigPath(constchar*dbconfigPath);
To set path where db files will be kept
voidsetDbPath(constchar*dbPath);
To set path where log files will be kept
voidsetLogPath(constchar*logPath);
To set path where archive files will be kept
voidsetArchivePath(constchar*archivePath);
To open db in transactional or non-transactional mode
voidsetTransactionType(TransactionType tranType);
To set for sock connection
voidsetInitSockConn(bool flag);
This is to specify if we need to init the socket connection.
To set secure connection
voidsetSecureConn(bool flag);
To get host IP address
constchar*getHost();
User should free the returned data using delete[].
To get host PORT
constchar*getPort();
User should free the returned data using delete[].
To get location of bangdb.config file
constchar*getDbConfigPath();
User should free the returned data using delete[].
To get location of DB files
constchar*getDbPath();
User should free the returned data using delete[].
To get location of log files
constchar*getLogPath();
User should free the returned data using delete[].
To get location of archive files
constchar*getArchivePath();
User should free the returned data using delete[].
To get the transaction type
TransactionType getTranType();
To check sock connection
boolgetInitSockConn();
To check for secure connection
boolgetSecureConn();
To get status for verification for DB parameters
publicbooleanget_just_verify()
To verify DB parameters
publicvoidset_just_verify(boolean just_verify)
To check for sock connections
publicbooleanget_init_sock_conns()
This returns boolean that represent init the socket connection.