![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members BdbClustHintSetupMgr Class Reference
[BdbAccess]#include <BdbClustHintSetupMgr.hh>
Public Methods
BdbClustHintSetupMgr () virtual ~BdbClustHintSetupMgr () const char * emptyDbPath () const const char * iorFilePath () const d_Boolean migrateDbs () const d_Boolean collectUsedDbsStats () const d_Boolean useSystemCalls () const d_Boolean checkIfFDLocked () const void setStrings (const char *clusterName, const char *domainName, const char *authLevelName, const char *authName, const char *compName) d_ULong retrieveMaxContNr () const d_ULong retrieveMaxContSize () const d_ULong retrieveDirRange () const const char * retrieveFSGroupName () const d_ULong retrieveInitNoPages () const d_ULong retrieveContPercGr () const d_ULong retrieveHashCont () const BdbStatus retrieveDomainSpec (d_ULong *values, int noElems) const d_Boolean fcLoaded () const BdbStatus retrieveCatalogFS (BdbTFileSystem &tFS) const BdbStatus retrieveFileSystems (char *&groupName, std::vector< BdbTFileSystem * > *&fileSystems) const void test () Static Public Methods
BdbClustHintSetupMgr * instance () BdbStatus initCHSetupObj () d_Boolean serverMode () d_Boolean inprocessMode () Private Methods
BdbStatus loadConfigFile () Private Attributes
d_Boolean _createDbByCopying d_Boolean _tryMigrateDbs d_Boolean _collectUsedDbsStats d_Boolean _useSystem d_Boolean _checkIfFDLocked std::map< std::string, bool > * _dbByCopy Static Private Attributes
BdbClustHintSetupMgr * _instance = 0 const char * _cfgFilePath = getenv("BDB_CLUST_HINT_CONFIG_FILE") const char * _emptyDbPath = "/usr/etc/objy/empty.bdb" char * _iorPath = 0 BdbPersCHSetup * _chSetup = 0 d_ULong _fdid = 0 char _mode = '-' Constructor & Destructor Documentation
BdbClustHintSetupMgr::BdbClustHintSetupMgr ( )
Definition at line 55 of file BdbClustHintSetupMgr.cc.
References _dbByCopy, _instance, d_False, d_True, and loadConfigFile().
Referenced by instance().
BdbClustHintSetupMgr::~BdbClustHintSetupMgr ( ) [virtual]
Definition at line 70 of file BdbClustHintSetupMgr.cc.
References _dbByCopy.
Member Function Documentation
d_Boolean BdbClustHintSetupMgr::checkIfFDLocked ( ) const [inline]
Definition at line 88 of file BdbClustHintSetupMgr.hh.
References _checkIfFDLocked.
Referenced by BdbSingleBootInhibit::isInhibited().
d_Boolean BdbClustHintSetupMgr::collectUsedDbsStats ( ) const [inline]
Definition at line 86 of file BdbClustHintSetupMgr.hh.
References _collectUsedDbsStats.
Referenced by BdbSrvAbsBaseClustH::printUsedDbs(), BdbAbsBaseClustH::printUsedDbs(), BdbSrvAbsBaseClustH::registerCurrentDbAsUsed(), and BdbAbsBaseClustH::registerCurrentDbAsUsed().
const char* BdbClustHintSetupMgr::emptyDbPath ( ) const [inline]
Definition at line 83 of file BdbClustHintSetupMgr.hh.
References _emptyDbPath.
d_Boolean BdbClustHintSetupMgr::fcLoaded ( )
Definition at line 166 of file BdbClustHintSetupMgr.cc.
References _chSetup, d_False, and BdbPersCHSetup::fcLoaded().
Referenced by BdbCatalogFSHandler::initialize(), and BdbFSMgr::rebuildFSInfo().
BdbStatus BdbClustHintSetupMgr::initCHSetupObj ( ) [static]
The function will read all the info loaded by the BdbFileConfigLoader. It requires a transaction, read mode is enough
Definition at line 182 of file BdbClustHintSetupMgr.cc.
References _chSetup, _fdid, BdbDomain::activeInstance(), BdbcSuccess, fdH, BdbPersCHSetup::initialize(), ooHandle(), and ooRef().
Referenced by BdbActiveDbsMgr::bringAllGroups2Memory(), BdbRecoveryMgr::findGroupConts(), BdbCatalogFSHandler::initialize(), BdbActiveDbsMgr::internalGroupInit(), BdbFSMgr::rebuildFSInfo(), and ClustApplication::runDomainSpecTest_V2().
d_Boolean BdbClustHintSetupMgr::inprocessMode ( ) [static]
Definition at line 378 of file BdbClustHintSetupMgr.cc.
References _mode.
Referenced by BdbEvsClusteringHint::initCH().
BdbClustHintSetupMgr * BdbClustHintSetupMgr::instance ( ) [static]
const char* BdbClustHintSetupMgr::iorFilePath ( ) const [inline]
Definition at line 84 of file BdbClustHintSetupMgr.hh.
References _iorPath.
Referenced by BdbHintKernel::initORB().
BdbStatus BdbClustHintSetupMgr::loadConfigFile ( ) [private]
Definition at line 87 of file BdbClustHintSetupMgr.cc.
References _cfgFilePath, _checkIfFDLocked, _collectUsedDbsStats, _createDbByCopying, _iorPath, _mode, BdbPersCHSetup::_serverMode, _tryMigrateDbs, _useSystem, BdbcError, BdbcSuccess, COUT1, d_False, and d_True.
Referenced by BdbClustHintSetupMgr().
d_Boolean BdbClustHintSetupMgr::migrateDbs ( ) const [inline]
Definition at line 85 of file BdbClustHintSetupMgr.hh.
References _tryMigrateDbs.
Referenced by BdbFullDbsMgr::findFullDbs().
BdbStatus BdbClustHintSetupMgr::retrieveCatalogFS ( BdbTFileSystem & tFS ) const
Definition at line 205 of file BdbClustHintSetupMgr.cc.
References _chSetup, and BdbPersCHSetup::retrieveCatalogFS().
Referenced by BdbCatalogFSHandler::initialize().
d_ULong BdbClustHintSetupMgr::retrieveContPercGr ( )
Definition at line 339 of file BdbClustHintSetupMgr.cc.
References _chSetup, and BdbPersCHSetup::retrieveContPercGr().
Referenced by BdbAbsRegularClustH::reloadCompSpecInfo().
d_ULong BdbClustHintSetupMgr::retrieveDirRange ( )
Definition at line 291 of file BdbClustHintSetupMgr.cc.
References _chSetup, and BdbPersCHSetup::retrieveDirRange().
Referenced by BdbAbsRegularClustH::reloadCompSpecInfo().
BdbStatus BdbClustHintSetupMgr::retrieveDomainSpec ( d_ULong * values, int noElems ) const
Definition at line 241 of file BdbClustHintSetupMgr.cc.
References _chSetup, BdbcError, and BdbPersCHSetup::retrieveDomainSpec().
Referenced by BdbSrvUtil::initSpec(), and ClustApplication::internalRunDomainSpecTest().
BdbStatus BdbClustHintSetupMgr::retrieveFileSystems ( char *& groupName, std::vector< BdbTFileSystem * > *& fileSystems ) const
Referenced by BdbFSMgr::firstAvailableDisk(), and BdbSrvUtil::initSpec().
const char * BdbClustHintSetupMgr::retrieveFSGroupName ( )
Definition at line 307 of file BdbClustHintSetupMgr.cc.
References _chSetup, d_True, and BdbPersCHSetup::retrieveFSGroupName().
Referenced by BdbSrvUtil::initSpec().
d_ULong BdbClustHintSetupMgr::retrieveHashCont ( )
Definition at line 356 of file BdbClustHintSetupMgr.cc.
References _chSetup, and BdbPersCHSetup::retrieveHashCont().
Referenced by BdbAbsRegularClustH::reloadCompSpecInfo().
d_ULong BdbClustHintSetupMgr::retrieveInitNoPages ( )
Definition at line 324 of file BdbClustHintSetupMgr.cc.
References _chSetup, and BdbPersCHSetup::retrieveInitNoPages().
Referenced by BdbAbsRegularClustH::reloadCompSpecInfo().
d_ULong BdbClustHintSetupMgr::retrieveMaxContNr ( )
Definition at line 261 of file BdbClustHintSetupMgr.cc.
References _chSetup, and BdbPersCHSetup::retrieveMaxContNr().
Referenced by BdbAbsRegularClustH::reloadCompSpecInfo().
d_ULong BdbClustHintSetupMgr::retrieveMaxContSize ( )
Definition at line 276 of file BdbClustHintSetupMgr.cc.
References _chSetup, and BdbPersCHSetup::retrieveMaxContSize().
Referenced by BdbAbsRegularClustH::reloadCompSpecInfo().
d_Boolean BdbClustHintSetupMgr::serverMode ( ) [static]
Definition at line 371 of file BdbClustHintSetupMgr.cc.
References _mode.
Referenced by BdbEvsClusteringHint::initCH().
void BdbClustHintSetupMgr::setStrings ( const char * clusterName, const char * domainName, const char * authLevelName, const char * authName, const char * compName )
Definition at line 222 of file BdbClustHintSetupMgr.cc.
References _chSetup, authLevelName, domainName, and BdbPersCHSetup::setStrings().
Referenced by BdbSrvUtil::initSpec(), ClustApplication::internalRunDomainSpecTest(), BdbFSMgr::rebuildFSInfo(), and BdbAbsRegularClustH::reloadCompSpecInfo().
void BdbClustHintSetupMgr::test ( )
d_Boolean BdbClustHintSetupMgr::useSystemCalls ( ) const [inline]
Definition at line 87 of file BdbClustHintSetupMgr.hh.
References _useSystem.
Member Data Documentation
const char * BdbClustHintSetupMgr::_cfgFilePath = getenv("BDB_CLUST_HINT_CONFIG_FILE") [static, private]
Definition at line 45 of file BdbClustHintSetupMgr.cc.
Referenced by loadConfigFile().
d_Boolean BdbClustHintSetupMgr::_checkIfFDLocked [private]
Definition at line 64 of file BdbClustHintSetupMgr.hh.
Referenced by checkIfFDLocked(), and loadConfigFile().
BdbPersCHSetup * BdbClustHintSetupMgr::_chSetup = 0 [static, private]
Definition at line 49 of file BdbClustHintSetupMgr.cc.
Referenced by fcLoaded(), initCHSetupObj(), retrieveCatalogFS(), retrieveContPercGr(), retrieveDirRange(), retrieveDomainSpec(), retrieveFSGroupName(), retrieveHashCont(), retrieveInitNoPages(), retrieveMaxContNr(), retrieveMaxContSize(), and setStrings().
d_Boolean BdbClustHintSetupMgr::_collectUsedDbsStats [private]
Definition at line 61 of file BdbClustHintSetupMgr.hh.
Referenced by collectUsedDbsStats(), and loadConfigFile().
d_Boolean BdbClustHintSetupMgr::_createDbByCopying [private]
Definition at line 57 of file BdbClustHintSetupMgr.hh.
Referenced by loadConfigFile().
std::map<std::string, bool>* BdbClustHintSetupMgr::_dbByCopy [private]
Definition at line 67 of file BdbClustHintSetupMgr.hh.
Referenced by BdbClustHintSetupMgr(), and ~BdbClustHintSetupMgr().
const char * BdbClustHintSetupMgr::_emptyDbPath = "/usr/etc/objy/empty.bdb" [static, private]
Definition at line 46 of file BdbClustHintSetupMgr.cc.
Referenced by emptyDbPath().
d_ULong BdbClustHintSetupMgr::_fdid = 0 [static, private]
Definition at line 50 of file BdbClustHintSetupMgr.cc.
Referenced by initCHSetupObj().
BdbClustHintSetupMgr * BdbClustHintSetupMgr::_instance = 0 [static, private]
Definition at line 44 of file BdbClustHintSetupMgr.cc.
Referenced by BdbClustHintSetupMgr(), and instance().
char * BdbClustHintSetupMgr::_iorPath = 0 [static, private]
Definition at line 47 of file BdbClustHintSetupMgr.cc.
Referenced by iorFilePath(), and loadConfigFile().
char BdbClustHintSetupMgr::_mode = '-' [static, private]
Definition at line 52 of file BdbClustHintSetupMgr.cc.
Referenced by inprocessMode(), loadConfigFile(), and serverMode().
d_Boolean BdbClustHintSetupMgr::_tryMigrateDbs [private]
Definition at line 60 of file BdbClustHintSetupMgr.hh.
Referenced by loadConfigFile(), and migrateDbs().
d_Boolean BdbClustHintSetupMgr::_useSystem [private]
Definition at line 62 of file BdbClustHintSetupMgr.hh.
Referenced by loadConfigFile(), and useSystemCalls().
The documentation for this class was generated from the following files:
- /BdbAccess/BdbClustHintSetupMgr.hh
- /BdbAccess/BdbClustHintSetupMgr.cc
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002