00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #include <oasys/storage/StorageConfig.h>
00040
00041 #include "StorageCommand.h"
00042 #include "bundling/BundlePayload.h"
00043
00044 namespace dtn {
00045
00046 StorageCommand::StorageCommand(oasys::StorageConfig* cfg)
00047 : TclCommand(cfg->cmd_.c_str())
00048 {
00049 inited_ = false;
00050
00051 bind_s("type", &cfg->type_, "What storage system to use.");
00052 bind_b("tidy", &cfg->tidy_, "Same as the --tidy argument to dtnd.");
00053 bind_b("init_db", &cfg->init_, "Same as the --init-db argument to dtnd.");
00054 bind_i("tidy_wait", &cfg->tidy_wait_,
00055 "How long to wait before really doing the tidy operation.");
00056 bind_s("dbname", &cfg->dbname_, "The database name.");
00057 bind_s("dbdir", &cfg->dbdir_, "The database directory.");
00058 bind_s("payloaddir",&BundlePayload::payloaddir_,
00059 "directory for payloads while in transit");
00060
00061 bind_i("fs_fd_cache_size", &cfg->fs_fd_cache_size_,
00062 "number of open fds to cache");
00063
00064 bind_b("db_mpool", &cfg->db_mpool_, "use mpool in Berkeley DB");
00065 bind_b("db_log", &cfg->db_log_, "use logging in Berkeley DB");
00066 bind_b("db_txn", &cfg->db_txn_, "use transactions in Berkeley DB");
00067 bind_b("db_sharefile", &cfg->db_sharefile_, "use shared database file");
00068 bind_i("db_max_tx", &cfg->db_max_tx_,
00069 "max # of active transactions in Berkeley DB");
00070 bind_i("db_max_locks", &cfg->db_max_locks_,
00071 "max # of active locks in Berkeley DB");
00072 bind_i("db_max_lockers", &cfg->db_max_lockers_,
00073 "max # of active locking threads in Berkeley DB");
00074 bind_i("db_max_lockedobjs", &cfg->db_max_lockedobjs_,
00075 "max # of active locked objects in Berkeley DB");
00076 bind_i("db_lockdetect", &cfg->db_lockdetect_,
00077 "frequency to check for Berkeley DB deadlocks (zero disables locking)");
00078 }
00079
00080 }