oasys::StorageConfig Struct Reference

#include <StorageConfig.h>

Inheritance diagram for oasys::StorageConfig:

dtn::DTNStorageConfig

List of all members.


Detailed Description

Simple singleton class that just contains the storage-specific configuration variables. An instance of this configuration is given to Durable storage system to initialize it.

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).

Constructor & Destructor Documentation

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.


Member Data Documentation

std::string oasys::StorageConfig::cmd_

tcl command name for this instance

Definition at line 32 of file StorageConfig.h.

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().

bool oasys::StorageConfig::init_

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().

bool oasys::StorageConfig::tidy_

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().

int oasys::StorageConfig::tidy_wait_

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().

bool oasys::StorageConfig::leave_clean_file_

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().

int oasys::StorageConfig::fs_fd_cache_size_

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().

bool oasys::StorageConfig::db_mpool_

Use DB mpool (default true).

Definition at line 48 of file StorageConfig.h.

Referenced by oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().

bool oasys::StorageConfig::db_log_

Use DB log subsystem.

Definition at line 49 of file StorageConfig.h.

Referenced by oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().

bool oasys::StorageConfig::db_txn_

Use DB transaction.

Definition at line 50 of file StorageConfig.h.

Referenced by oasys::BerkeleyDBStore::init(), and dtn::StorageCommand::StorageCommand().

int oasys::StorageConfig::db_max_tx_

Max # of active transactions (0 for default).

Definition at line 51 of file StorageConfig.h.

Referenced by dtn::DTND::DTND(), and dtn::StorageCommand::StorageCommand().

int oasys::StorageConfig::db_max_locks_

Max # of active locks (0 for default).

Definition at line 52 of file StorageConfig.h.

Referenced by dtn::StorageCommand::StorageCommand().

int oasys::StorageConfig::db_max_lockers_

Max # of active locking threads (0 for default).

Definition at line 53 of file StorageConfig.h.

Referenced by dtn::StorageCommand::StorageCommand().

int oasys::StorageConfig::db_max_lockedobjs_

Max # of active locked objects (0 for default).

Definition at line 54 of file StorageConfig.h.

Referenced by dtn::StorageCommand::StorageCommand().

int oasys::StorageConfig::db_max_logregion_

Logging region max (0 for default).

Definition at line 55 of file StorageConfig.h.

int oasys::StorageConfig::db_lockdetect_

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().

bool oasys::StorageConfig::db_sharefile_

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().


The documentation for this struct was generated from the following file:
Generated on Sat Sep 8 08:36:26 2007 for DTN Reference Implementation by  doxygen 1.5.3