ConfigValues Class Reference

#include <Config.h>


Public Member Functions

 ConfigValues ()

Data Fields

int pageSize
int maxProcs
long maxSysSize
long maxDbSize
int sysDbKey
int userDbKey
char logFile [MAX_FILE_PATH_LEN]
char dbFile [MAX_FILE_PATH_LEN]
long mapAddr
int mutexSecs
int mutexUSecs
int mutexRetries
int lockSecs
int lockUSecs
int lockRetries
bool isCache
char dsn [IDENTIFIER_LENGTH]
char tableConfigFile [MAX_FILE_PATH_LEN]
bool isTwoWay
int cacheWaitSecs
bool isReplication
char replConfigFile [MAX_FILE_PATH_LEN]
int networkID
int cacheNetworkID
long logStoreSize
int nwResponseTimeout
int nwConnectTimeout


Detailed Description

Definition at line 19 of file Config.h.


Constructor & Destructor Documentation

ConfigValues::ConfigValues (  )  [inline]

Definition at line 54 of file Config.h.

References cacheNetworkID, cacheWaitSecs, dbFile, dsn, isCache, isReplication, isTwoWay, lockRetries, lockSecs, lockUSecs, logFile, logStoreSize, mapAddr, maxDbSize, maxProcs, maxSysSize, mutexRetries, mutexSecs, mutexUSecs, networkID, nwConnectTimeout, nwResponseTimeout, pageSize, replConfigFile, sysDbKey, tableConfigFile, and userDbKey.

00055     {
00056         pageSize = 8192;
00057         maxProcs = 20;
00058         maxSysSize = 10485760;
00059         maxDbSize = 104857600;
00060         sysDbKey = 2222;
00061         userDbKey = 5555;
00062         strcpy(logFile, "/tmp/log/log.out");
00063         strcpy(dbFile, "/tmp/csql/csql.db");
00064         mapAddr=400000000;
00065         mutexSecs=0;
00066         mutexUSecs=10;
00067         mutexRetries = 10;
00068         lockSecs =0;
00069         lockUSecs = 10;
00070         lockRetries = 10;
00071         isCache = false;
00072         cacheNetworkID =-1;
00073         strcpy(dsn, "myodbc3");
00074         strcpy(tableConfigFile, "/tmp/csql/csqltable.conf");
00075         isReplication = false;
00076         strcpy(replConfigFile, "/tmp/csql/csqlnw.conf");
00077         logStoreSize = 10485760;
00078         networkID=-1;
00079         nwResponseTimeout=3;
00080         nwConnectTimeout=5;
00081         isTwoWay=true;
00082         cacheWaitSecs =10;
00083     }


Field Documentation

int ConfigValues::cacheNetworkID

Definition at line 48 of file Config.h.

Referenced by ConfigValues(), and Config::getCacheNetworkID().

int ConfigValues::cacheWaitSecs

Definition at line 43 of file Config.h.

Referenced by ConfigValues(), and Config::getCacheWaitSecs().

char ConfigValues::dbFile[MAX_FILE_PATH_LEN]

Definition at line 30 of file Config.h.

Referenced by ConfigValues(), and Config::getDbFile().

char ConfigValues::dsn[IDENTIFIER_LENGTH]

Definition at line 40 of file Config.h.

Referenced by ConfigValues(), and Config::getDSN().

bool ConfigValues::isCache

Definition at line 39 of file Config.h.

Referenced by ConfigValues(), and Config::useCache().

bool ConfigValues::isReplication

Definition at line 45 of file Config.h.

Referenced by ConfigValues(), and Config::useReplication().

bool ConfigValues::isTwoWay

Definition at line 42 of file Config.h.

Referenced by ConfigValues(), and Config::useTwoWayCache().

int ConfigValues::lockRetries

Definition at line 37 of file Config.h.

Referenced by ConfigValues(), and Config::getLockRetries().

int ConfigValues::lockSecs

Definition at line 35 of file Config.h.

Referenced by ConfigValues(), and Config::getLockSecs().

int ConfigValues::lockUSecs

Definition at line 36 of file Config.h.

Referenced by ConfigValues(), and Config::getLockUSecs().

char ConfigValues::logFile[MAX_FILE_PATH_LEN]

Definition at line 29 of file Config.h.

Referenced by ConfigValues(), and Config::getLogFile().

long ConfigValues::logStoreSize

Definition at line 50 of file Config.h.

Referenced by ConfigValues(), and Config::getMaxLogStoreSize().

long ConfigValues::mapAddr

Definition at line 31 of file Config.h.

Referenced by ConfigValues(), and Config::getMapAddress().

long ConfigValues::maxDbSize

Definition at line 26 of file Config.h.

Referenced by ConfigValues(), and Config::getMaxDbSize().

int ConfigValues::maxProcs

Definition at line 24 of file Config.h.

Referenced by ConfigValues(), and Config::getMaxProcs().

long ConfigValues::maxSysSize

Definition at line 25 of file Config.h.

Referenced by ConfigValues(), and Config::getMaxSysDbSize().

int ConfigValues::mutexRetries

Definition at line 34 of file Config.h.

Referenced by ConfigValues(), and Config::getMutexRetries().

int ConfigValues::mutexSecs

Definition at line 32 of file Config.h.

Referenced by ConfigValues(), and Config::getMutexSecs().

int ConfigValues::mutexUSecs

Definition at line 33 of file Config.h.

Referenced by ConfigValues(), and Config::getMutexUSecs().

int ConfigValues::networkID

Definition at line 47 of file Config.h.

Referenced by ConfigValues(), and Config::getNetworkID().

int ConfigValues::nwConnectTimeout

Definition at line 52 of file Config.h.

Referenced by ConfigValues(), and Config::getNetworkConnectTimeout().

int ConfigValues::nwResponseTimeout

Definition at line 51 of file Config.h.

Referenced by ConfigValues(), and Config::getNetworkResponseTimeout().

int ConfigValues::pageSize

Definition at line 23 of file Config.h.

Referenced by ConfigValues(), and Config::getPageSize().

char ConfigValues::replConfigFile[MAX_FILE_PATH_LEN]

Definition at line 46 of file Config.h.

Referenced by ConfigValues(), and Config::getReplConfigFile().

int ConfigValues::sysDbKey

Definition at line 27 of file Config.h.

Referenced by ConfigValues(), and Config::getSysDbKey().

char ConfigValues::tableConfigFile[MAX_FILE_PATH_LEN]

Definition at line 41 of file Config.h.

Referenced by ConfigValues(), and Config::getTableConfigFile().

int ConfigValues::userDbKey

Definition at line 28 of file Config.h.

Referenced by ConfigValues(), and Config::getUserDbKey().


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 22:44:52 2008 for csql by  doxygen 1.4.7