#include <StorageConfig.h>

Definition at line 30 of file StorageConfig.h.
Public Member Functions | |
| StorageConfig (const std::string &cmd, const std::string &type, const std::string &dbname, const std::string &dbdir) | |
Public Attributes | |
| std::string | cmd_ |
| tcl command name for this instance | |
| std::string | type_ |
| storage type [berkeleydb/mysql/postgres] | |
| std::string | dbname_ |
| Database name (filename in berkeley db). | |
| std::string | dbdir_ |
| Path to the database files. | |
| bool | init_ |
| Create new databases on init. | |
| bool | tidy_ |
| Prune out the database on init. | |
| int | tidy_wait_ |
| Seconds to wait before tidying. | |
| bool | leave_clean_file_ |
| Leave a .ds_clean file on clean shutdown. | |
| int | fs_fd_cache_size_ |
| If > 0, then this # of open fds will be cached. | |
| bool | db_mpool_ |
| Use DB mpool (default true). | |
| bool | db_log_ |
| Use DB log subsystem. | |
| bool | db_txn_ |
| Use DB transaction. | |
| int | db_max_tx_ |
| Max # of active transactions (0 for default). | |
| int | db_max_locks_ |
| Max # of active locks (0 for default). | |
| int | db_max_lockers_ |
| Max # of active locking threads (0 for default). | |
| int | db_max_lockedobjs_ |
| Max # of active locked objects (0 for default). | |
| int | db_max_logregion_ |
| Logging region max (0 for default). | |
| int | db_lockdetect_ |
| Frequency in msecs to check for deadlocks (locking disabled if zero). | |
| bool | db_sharefile_ |
| Share a single DB file (and a lock). | |
| oasys::StorageConfig::StorageConfig | ( | const std::string & | cmd, | |
| const std::string & | type, | |||
| const std::string & | dbname, | |||
| const std::string & | dbdir | |||
| ) | [inline] |
Definition at line 60 of file StorageConfig.h.
| std::string oasys::StorageConfig::cmd_ |
| std::string oasys::StorageConfig::type_ |
storage type [berkeleydb/mysql/postgres]
Definition at line 33 of file StorageConfig.h.
Referenced by oasys::DurableStore::create_store(), dtnsim::Simulator::Simulator(), and dtn::StorageCommand::StorageCommand().
| std::string oasys::StorageConfig::dbname_ |
Database name (filename in berkeley db).
Definition at line 34 of file StorageConfig.h.
Referenced by oasys::FileSystemStore::init(), oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().
| std::string oasys::StorageConfig::dbdir_ |
Path to the database files.
Definition at line 35 of file StorageConfig.h.
Referenced by oasys::DurableStore::create_store(), oasys::FileSystemStore::init(), oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().
Create new databases on init.
Definition at line 38 of file StorageConfig.h.
Referenced by oasys::DurableStore::create_store(), dtn::GlobalStore::do_init(), dtn::DTND::get_options(), oasys::FileSystemStore::init(), oasys::BerkeleyDBStore::init(), dtn::DTNServer::init_datastore(), dtn::DTND::main(), dtnsim::Simulator::Simulator(), and dtn::StorageCommand::StorageCommand().
Prune out the database on init.
Definition at line 39 of file StorageConfig.h.
Referenced by dtn::DTND::get_options(), oasys::MemoryStore::init(), oasys::FileSystemStore::init(), oasys::BerkeleyDBStore::init(), dtn::DTNServer::init_datastore(), dtn::DTND::main(), dtnsim::Simulator::Simulator(), and dtn::StorageCommand::StorageCommand().
Seconds to wait before tidying.
Definition at line 40 of file StorageConfig.h.
Referenced by oasys::BerkeleyDBStore::init(), dtnsim::Simulator::Simulator(), and dtn::StorageCommand::StorageCommand().
Leave a .ds_clean file on clean shutdown.
Definition at line 41 of file StorageConfig.h.
Referenced by oasys::DurableStore::create_store(), and dtnsim::Simulator::Simulator().
If > 0, then this # of open fds will be cached.
Definition at line 44 of file StorageConfig.h.
Referenced by oasys::FileSystemStore::init(), and dtn::StorageCommand::StorageCommand().
Use DB mpool (default true).
Definition at line 48 of file StorageConfig.h.
Referenced by oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().
Use DB log subsystem.
Definition at line 49 of file StorageConfig.h.
Referenced by oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().
Use DB transaction.
Definition at line 50 of file StorageConfig.h.
Referenced by oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().
Max # of active transactions (0 for default).
Definition at line 51 of file StorageConfig.h.
Referenced by dtn::DTND::DTND(), and dtn::StorageCommand::StorageCommand().
Max # of active locks (0 for default).
Definition at line 52 of file StorageConfig.h.
Referenced by dtn::StorageCommand::StorageCommand().
Max # of active locking threads (0 for default).
Definition at line 53 of file StorageConfig.h.
Referenced by dtn::StorageCommand::StorageCommand().
Max # of active locked objects (0 for default).
Definition at line 54 of file StorageConfig.h.
Referenced by dtn::StorageCommand::StorageCommand().
Frequency in msecs to check for deadlocks (locking disabled if zero).
Definition at line 56 of file StorageConfig.h.
Referenced by oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().
Share a single DB file (and a lock).
Definition at line 58 of file StorageConfig.h.
Referenced by oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().
1.5.3