![]() |
|
|
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 BdbDomainOODB Class Reference
[BdbDomainOODB]#include <BdbDomainOODB.hh>
Inheritance diagram for BdbDomainOODB:
List of all members.
Public Types
enum TransReuse { Forbidden, Optional, Signaled, Required } Public Methods
virtual ~BdbDomainOODB () d_Boolean oodbIsInitialized () const const char * bootName () const const char * dirName () const const char * hostName () const d_ULong cacheInitPages () const d_ULong cacheMaxPages () const d_ULong fileDescriptors () const BdbAMSUsage amsUsage () const BdbTransToken currentTransToken () const void setCacheInitPages (d_ULong thePages) void setCacheMaxPages (d_ULong thePages) void setFileDescriptors (d_ULong theFiles) void setAMSUsage (BdbAMSUsage amsUsage) void setStandalone () void ignoreErrors () void noticeErrors () BdbHandle (BdbFDObj)&fd() const BdbDomainOODB * activeDomain () const d_Boolean isActive () const d_Boolean transIsOpen () const BdbStatus activate () const BdbStatus deactivate () const d_Boolean isStandalone () const d_Long rpcTimeout () const void setRpcTimeout (d_Long secs) d_Boolean isVTablePointerChecked () const void setCheckVTablePointer (d_Boolean isChecked) d_Long lockWait () const void setLockWait (d_Long waitMode=BdbcNoWait) BdbIndexMode indexMode () const BdbMode mrowMode () const BdbStatus updateAndWait (BdbHandleAny &theObj, const char *const thePrefix, d_ULong timeout=60) BdbStatus updateAndWait (BdbHandleAny theHandles[], int nrElem, const char *const thePrefix, d_ULong timeout=60) BdbTransId transId () const BdbHandleCacheMgr * currentHandleCache () BdbStatus startUpdate (const char *theTag=0) BdbStatus startRead (const char *theTag=0) BdbStatus abort (const char *theTag=0) BdbStatus commit (const char *theTag=0) BdbStatus commitAndHold (const char *theTag=0) BdbStatus checkPoint (const char *theTag=0) BdbStatus checkPoint (BdbCheckPointFunc &theFunction, const char *theTag=0) BdbMode change (BdbMode theMode, d_Boolean forceCommit=d_False, const char *theTag=0) BdbStatus closeAllAndReopen (const char *theTag=0) BdbStatus closeAllAndReopen (BdbNoOpenTransFunc &theFunction, const char *theTag=0) BdbMode mode () const const char * modeName () const const char * modeName (BdbMode mode) BdbNestingOptToken issueOptToken () void releaseOptToken (BdbNestingOptToken optToken=BdbcInValidNestingOptToken) BdbStatus startNestedRead (BdbNestingOptToken optToken=BdbcInValidNestingOptToken) BdbStatus startNestedUpdate (BdbNestingOptToken optToken=BdbcInValidNestingOptToken) BdbStatus commitNested (BdbNestingOptToken optToken=BdbcInValidNestingOptToken) Static Public Methods
BdbDomainOODB * activeDomainOODB () BdbNoOpenTransFunc & noOpNoOpen () BdbCheckPointFunc & noOpCheckPoint () Protected Methods
BdbDomainOODB (BdbImplDomainOODB *implementation) d_Boolean hasInhibitPolicy () const d_Boolean currentTransIsHeld () const void setInhibitPolicy (const BdbInhibitPolicy *policy) void setIndexMode (BdbIndexMode indexMode) void setMrowMode (BdbMode mrowMode) void setBootName (const char *bootName) void setDefaultBootName (const char *bootName) void holdCurrentTrans () void dropCurrentTrans () void setCurrentTrans (const BdbTransToken &token) BdbTransToken newCurrentTrans () BdbTransToken newCurrentTrans (const char *newBootName) Private Methods
BdbDomainOODB () const BdbDomainOODB * matchLabel (const char *label, const BdbDomainOODB *loopStart) const void addToRing (BdbDomainOODB *predecessor) void removeFromRing () Private Attributes
BdbImplDomainOODB * _impl d_Boolean _isActive BdbDomainOODB * _next BdbDomainOODB * _previous Static Private Attributes
BdbDomainOODB * _ringEntrance d_ULong _activationCount Member Enumeration Documentation
enum BdbDomainOODB::TransReuse
Definition at line 61 of file BdbDomainOODB.hh.
Referenced by BdbDomain::BdbDomain(), BdbObjyDomain::BdbObjyDomain(), and BdbDomain::createImplDomainOODB().
Constructor & Destructor Documentation
BdbDomainOODB::~BdbDomainOODB ( ) [virtual]
Destructor
Definition at line 151 of file BdbDomainOODB.cc.
References _impl, _next, _previous, _ringEntrance, and removeFromRing().
BdbDomainOODB::BdbDomainOODB ( BdbImplDomainOODB * implementation ) [protected]
Definition at line 120 of file BdbDomainOODB.cc.
References _impl, _ringEntrance, addToRing(), false, matchLabel(), and BdbImplDomainOODB::setClient().
BdbDomainOODB::BdbDomainOODB ( ) [private]
stop default
Member Function Documentation
BdbStatus BdbDomainOODB::abort ( const char * theTag = 0 )
Abort the curent transaction.
Definition at line 634 of file BdbDomainOODB.cc.
References _impl, BdbImplDomainOODB::abort(), BdbStatus, deactivate(), and result.
Referenced by CdbToolsReadTrans::abort(), BdbCondTransUpdate::abort(), BdbCondTransRead::abort(), BdbAuth::abort(), BdbDbBrowse::browseDomain(), checkpoint(), checkpointAfter(), cmd_transaction(), BdbDistApplicationCmd::command(), BdbDistribution::error(), exitHandler(), fixTreeNode(), importDb(), main(), BdbTransactionMgr::prepare(), registerFullDb(), removeAllCheckpoints(), BdbDistribution::removeDb(), removeOneCheckpoint(), BdbMarkDbsFull::run(), BdbCloseDbs::run(), and BdbDistribution::shadowDb().
BdbStatus BdbDomainOODB::activate ( )
BdbDomainOODB* BdbDomainOODB::activeDomain ( )
- Returns:
- the currently active domain
BdbDomainOODB * BdbDomainOODB::activeDomainOODB ( ) [static]
void BdbDomainOODB::addToRing ( BdbDomainOODB * predecessor ) [private]
Add this instance to the ring which include the predecessor
Definition at line 775 of file BdbDomainOODB.cc.
References _next, and _previous.
Referenced by BdbDomainOODB().
BdbAMSUsage BdbDomainOODB::amsUsage ( )
the AMS usage for the job
Definition at line 214 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::amsUsage().
Referenced by setAMSUsage().
BdbDomainOODB::BdbHandle ( BdbFDObj ) const
const char * BdbDomainOODB::bootName ( )
d_ULong BdbDomainOODB::cacheInitPages ( )
The initial cache size.
Definition at line 196 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::cacheInitPages().
Referenced by BdbTransactionMgr::prepareObjy().
d_ULong BdbDomainOODB::cacheMaxPages ( )
The maximum cache size.
Definition at line 202 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::cacheMaxPages().
Referenced by BdbTransactionMgr::prepareObjy().
BdbMode BdbDomainOODB::change ( BdbMode theMode, d_Boolean forceCommit = d_False, const char * theTag = 0 )
BdbStatus BdbDomainOODB::checkPoint ( BdbCheckPointFunc & theFunction, const char * theTag = 0 )
Commit the current transaction,, the specified BdbCheckPointFunc object is executed, and then the transaction is restarted. The current locks may or may not be held depending on the circumstances. (If the locks _must_ be held the use 'commitAndHold'.)
Definition at line 665 of file BdbDomainOODB.cc.
References _impl, activate(), BdbStatus, BdbImplDomainOODB::checkPoint(), deactivate(), and result.
BdbStatus BdbDomainOODB::checkPoint ( const char * theTag = 0 )
Commit the current transaction and restarts it. The current locks may or may not be held depending on the circumstances. (If the locks _must_ be held the use 'commitAndHold'.)
Definition at line 658 of file BdbDomainOODB.cc.
References noOpCheckPoint().
Referenced by BdbTransactionMgr::conditionalCheckPoint(), and BdbOutputStream::switchToOutputTrans().
BdbStatus BdbDomainOODB::closeAllAndReopen ( BdbNoOpenTransFunc & theFunction, const char * theTag = 0 )
If all open transactions are read transaction, with the exception of transactions in this domain, then all transactions are commited, the specified BdbNoOpenTransFunc object is executed, and then all transactions are restored to their original state.
Only returns if succeeds (Include return for backwards compatibility.)
- Returns:
- BdbcSuccess
Definition at line 692 of file BdbDomainOODB.cc.
References _impl, activate(), BdbStatus, BdbImplDomainOODB::closeAllAndReopen(), deactivate(), and result.
BdbStatus BdbDomainOODB::closeAllAndReopen ( const char * theTag = 0 )
If all open transactions are read transaction, with the exception of transactions in this domain, then all transactions are commited and then restored to their original state.
Only returns if succeeds (Include return for backwards compatibility.)
- Returns:
- BdbcSuccess
Definition at line 685 of file BdbDomainOODB.cc.
References noOpNoOpen().
BdbStatus BdbDomainOODB::commit ( const char * theTag = 0 )
BdbStatus BdbDomainOODB::commitAndHold ( const char * theTag = 0 )
Commit and hold (restart) the current transaction. This is not a truely atomic operation (which it should be).
Definition at line 650 of file BdbDomainOODB.cc.
References _impl, BdbStatus, BdbImplDomainOODB::commitAndHold(), deactivate(), and result.
Referenced by CdbBdbTransaction::commitAndHold().
BdbStatus BdbDomainOODB::commitNested ( BdbNestingOptToken optToken = BdbcInValidNestingOptToken )
BdbHandleCacheMgr * BdbDomainOODB::currentHandleCache ( )
Get a pointer to the cache of handles associated with current context.
Definition at line 410 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::currentHandleCache().
Referenced by BdbContAccessMgr::createContainer(), BdbDbAccessMgr::createDb(), BdbContAccessMgr::openContainer(), BdbDbAccessMgr::openDb(), and BdbContAccessMgr::openDbAndCont().
d_Boolean BdbDomainOODB::currentTransIsHeld ( ) [protected]
- Returns:
- true is token represents a locked transaction
Reimplemented in BdbTestDomainOODB.
Definition at line 345 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::currentTransIsHeld().
Referenced by BdbTestDomainOODB::currentTransIsHeld(), and BdbEventStore::releaseTrans().
BdbTransToken BdbDomainOODB::currentTransToken ( )
- Returns:
- the BdbTransToken being used by this instance whenever it is active.
Reimplemented in BdbTestDomainOODB.
Definition at line 339 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::currentTransToken().
Referenced by BdbTreeNodeLocking::correctCtx(), BdbEventStore::currentTrans(), BdbTestDomainOODB::currentTransToken(), BdbEventStore::setCurrentTrans(), and BdbTreeNodeLocking::startRecording().
BdbStatus BdbDomainOODB::deactivate ( )
const char * BdbDomainOODB::dirName ( )
The base directory of the federation
Definition at line 184 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::dirName().
Referenced by BdbSetupDbs::createGlobalDb(), BdbActiveDbsMgr::createOrOpenDb(), BdbAbsIndexAPI::getDbInfo(), BdbCatalogFSHandler::initialize(), BdbAbsIndexBuilderAPI::initializeClusteringHint(), BdbPersCHSetup::internalRetrieveFSs(), BdbCatalogFSLoader::interpreteData(), main(), BdbDbName::parse(), BdbAttachApplication::run(), and BdbDistribution::shadowDb().
void BdbDomainOODB::dropCurrentTrans ( ) [protected]
flags the current Transaction so that it will be deleted.
Reimplemented in BdbTestDomainOODB.
Definition at line 284 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::dropCurrentTrans().
Referenced by BdbTestDomainOODB::dropCurrentTrans(), and BdbEventStore::releaseTrans().
d_ULong BdbDomainOODB::fileDescriptors ( )
The number of file descriptors.
Definition at line 208 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::fileDescriptors().
Referenced by BdbTransactionMgr::prepareObjy().
d_Boolean BdbDomainOODB::hasInhibitPolicy ( ) [protected]
Has an inhibit policy been setup?
Definition at line 333 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::hasInhibitPolicy().
Referenced by BdbEventStore::instance(), and BdbConditions::instance().
void BdbDomainOODB::holdCurrentTrans ( ) [protected]
flags the current Transaction so that it will not be deleted.
Reimplemented in BdbTestDomainOODB.
Definition at line 278 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::holdCurrentTrans().
Referenced by BdbTestDomainOODB::holdCurrentTrans(), BdbEventStore::releaseTrans(), and BdbEventStore::retainTrans().
const char * BdbDomainOODB::hostName ( )
The host name corresponding to location of the federation catalog
Definition at line 190 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::hostName().
Referenced by BdbDbAccessMgr::attachDatabase(), BdbSetupDbs::createGlobalDb(), BdbActiveDbsMgr::createOrOpenDb(), BdbAbsIndexAPI::getDbInfo(), BdbCatalogFSHandler::initialize(), BdbPersCHSetup::internalRetrieveFSs(), BdbCatalogFSLoader::interpreteData(), main(), BdbDbName::parse(), and BdbDistribution::shadowDb().
void BdbDomainOODB::ignoreErrors ( )
Set error handler to ignore unknown errors
Definition at line 254 of file BdbDomainOODB.cc.
References _impl, d_True, and BdbImplDomainOODB::setIgnoreErrors().
Referenced by BdbCondROIDServerLoader::commitProtectedTransaction(), BdbAbsRegularClustH::initializeDbHint(), main(), BdbBrowseFullDbs::run(), and BdbCondROIDServerLoader::startProtectedTransaction().
BdbIndexMode BdbDomainOODB::indexMode ( )
the index mode used by the transaction
Definition at line 392 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::indexMode().
Referenced by setIndexMode(), and BdbDatabase::verifyIndexMode().
d_Boolean BdbDomainOODB::isActive ( )
returns 'true' if this Domain is currently active
Definition at line 561 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::isActive().
Referenced by BdbEventInput::endJob().
d_Boolean BdbDomainOODB::isStandalone ( )
True if the ojb is running is standalone mode
Definition at line 350 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::isStandalone().
Referenced by BdbDistApplicationCmd::command(), BdbEventOutput::endJob(), BdbSingleBootInhibit::isInhibited(), and BdbTreeHdr::setDeleted().
BdbNestingOptToken BdbDomainOODB::issueOptToken ( )
issue optimization token
Definition at line 721 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::issueOptToken().
Referenced by BdbAbsBaseClustH::BdbAbsBaseClustH(), and BdbEventInput::validate().
d_Boolean BdbDomainOODB::isVTablePointerChecked ( )
Return the current Check VTable Pointer mode.
Definition at line 368 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::checkVTablePointer().
Referenced by BdbTransactionMgr::prepareObjy().
d_Long BdbDomainOODB::lockWait ( )
The current wait mode. This will be the default wait mode unless setLockWait was called within the current transaction.
Definition at line 380 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::lockWait().
Referenced by BdbFetchCollTFactory< T >::attemptGet(), BdbCollectionTFactory< T >::attemptGet(), BdbFetchCollTFactory< T >::attemptRegets(), BdbHandle(), BdbCollectionCommand::contentsCollHandler(), contentsCollHandler(), BdbCollectionCommand::createCollections(), BdbFullDbsMgr::deleteCounter(), BdbHandleCacheMgr::getMRUContHandle(), BdbHandleCacheMgr::getMRUDbHandle(), BdbCollectionCommand::listNodeHandler(), BdbContAccessMgr::openContainer(), BdbDbAccessMgr::openDb(), BdbEventStore::readAttempt(), BdbAbsRegularClustH::registerExtraPages(), updateAndWait(), BdbSrvAbsRegularClustH::updatedHint(), BdbSpClusteringHint::updatedHint(), BdbCustomClustH::updatedHint(), BdbConfigClusteringHint::updatedHint(), and BdbAbsRegularClustH::updatedHint().
const BdbDomainOODB * BdbDomainOODB::matchLabel ( const char * label, const BdbDomainOODB * loopStart ) const [private]
Check to see if any other domain in the ring has an implementation which matches the specified label
- Returns:
- the address of such the first match, 0 otherwsie
Definition at line 759 of file BdbDomainOODB.cc.
References _impl, _next, and BdbImplDomainOODB::label().
Referenced by BdbDomainOODB().
BdbMode BdbDomainOODB::mode ( )
const char * BdbDomainOODB::modeName ( BdbMode mode )
change a BdbMode into a const char*
Definition at line 715 of file BdbDomainOODB.cc.
References _impl, BdbMode, mode(), and BdbImplDomainOODB::modeName().
const char * BdbDomainOODB::modeName ( )
change a BdbMode into a const char*
Definition at line 709 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::modeName().
Referenced by BdbHandleCacheMgr::getMRUContHandle(), BdbHandleCacheMgr::getMRUDbHandle(), BdbContAccessMgr::openContainer(), and BdbDbAccessMgr::openDb().
BdbMode BdbDomainOODB::mrowMode ( )
- Returns:
- the indexing mode to use are next 'start'
Definition at line 398 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::mrowMode().
Referenced by setMrowMode(), and updateAndWait().
BdbTransToken BdbDomainOODB::newCurrentTrans ( const char * newBootName ) [protected]
Definition at line 305 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::newCurrentTrans().
BdbTransToken BdbDomainOODB::newCurrentTrans ( ) [protected]
Replaced current trans with a new one, deleting the old if it is not 'held'
- Returns:
- the token of the old transaction if it is held, otherwise BdbcInValidTranbsToken
Reimplemented in BdbTestDomainOODB.
Definition at line 296 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::newCurrentTrans().
Referenced by BdbEventStore::createOutputTrans(), BdbTestDomainOODB::newCurrentTrans(), and BdbEventStore::newEvsTrans().
BdbCheckPointFunc & BdbDomainOODB::noOpCheckPoint ( ) [static]
Definition at line 106 of file BdbDomainOODB.cc.
Referenced by checkPoint().
BdbNoOpenTransFunc & BdbDomainOODB::noOpNoOpen ( ) [static]
Definition at line 99 of file BdbDomainOODB.cc.
Referenced by closeAllAndReopen().
void BdbDomainOODB::noticeErrors ( )
Set error handler to process errors as normal
Definition at line 260 of file BdbDomainOODB.cc.
References _impl, d_False, and BdbImplDomainOODB::setIgnoreErrors().
Referenced by BdbCondROIDServerLoader::commitProtectedTransaction(), BdbAbsRegularClustH::initializeDbHint(), main(), BdbBrowseFullDbs::run(), and BdbCondROIDServerLoader::startProtectedTransaction().
d_Boolean BdbDomainOODB::oodbIsInitialized ( )
Inquire whether the OODBMS has been initialized.
Definition at line 172 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::oodbIsInitialized().
Referenced by BdbActiveDbsMgr::initialize(), and BdbTransactionMgr::prepareObjy().
void BdbDomainOODB::releaseOptToken ( BdbNestingOptToken optToken = BdbcInValidNestingOptToken )
issue optimization token
Definition at line 727 of file BdbDomainOODB.cc.
References _impl, BdbNestingOptToken, and BdbImplDomainOODB::releaseOptToken().
void BdbDomainOODB::removeFromRing ( ) [private]
Remove this instance from the ring
Definition at line 806 of file BdbDomainOODB.cc.
References _next, and _previous.
Referenced by ~BdbDomainOODB().
d_Long BdbDomainOODB::rpcTimeout ( )
The RPC Timeout interval
Definition at line 356 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::rpcTimeout().
Referenced by BdbTransactionMgr::prepareObjy().
void BdbDomainOODB::setAMSUsage ( BdbAMSUsage amsUsage )
Set the AMS usage for the job
Definition at line 242 of file BdbDomainOODB.cc.
References _impl, amsUsage(), BdbAMSUsage, and BdbImplDomainOODB::setAMSUsage().
Referenced by main().
void BdbDomainOODB::setBootName ( const char * bootName ) [protected]
Set the bootName of the federation this domain should use
Definition at line 266 of file BdbDomainOODB.cc.
References _impl, bootName(), and BdbImplDomainOODB::setBootName().
Referenced by BdbGenericDomain::decideBootName().
void BdbDomainOODB::setCacheInitPages ( d_ULong thePages )
Set the initial cache size to that specified. This has no effect once Objectivity has been initialized.
Definition at line 224 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::setCacheInitPages().
Referenced by BdbTransactionMgr::prepareObjy().
void BdbDomainOODB::setCacheMaxPages ( d_ULong thePages )
Set the maximum cache size to that specified. This has no effect once Objectivity has been initialized.
Definition at line 230 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::setCacheMaxPages().
Referenced by BdbTransactionMgr::prepareObjy().
void BdbDomainOODB::setCheckVTablePointer ( d_Boolean isChecked )
Set the current Check VTable Pointer mode.
Definition at line 374 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::setCheckVTablePointer().
Referenced by BdbTransactionMgr::prepareObjy().
void BdbDomainOODB::setCurrentTrans ( const BdbTransToken & token ) [protected]
Sets the current BdbTransToken to be used by this instance whenever it is active.
Reimplemented in BdbEventStore, and BdbTestDomainOODB.
Definition at line 290 of file BdbDomainOODB.cc.
References _impl, BdbTransToken, and BdbImplDomainOODB::setCurrentTrans().
Referenced by BdbTestDomainOODB::setCurrentTrans(), and BdbEventStore::setCurrentTrans().
void BdbDomainOODB::setDefaultBootName ( const char * bootName ) [protected]
Set the boot file name to be used as base federation for job.
Reimplemented in BdbTestDomainOODB.
Definition at line 272 of file BdbDomainOODB.cc.
References _impl, bootName(), and BdbImplDomainOODB::setDefaultBootName().
Referenced by BdbEventStore::changeDefaultFed(), and BdbTestDomainOODB::setDefaultBootName().
void BdbDomainOODB::setFileDescriptors ( d_ULong theFiles )
Set the number of file descriptors. This has no effect once Objectivity has been initialized.
Definition at line 236 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::setFileDescriptors().
Referenced by BdbTransactionMgr::prepareObjy().
void BdbDomainOODB::setIndexMode ( BdbIndexMode indexMode ) [protected]
Setup the indexing mode to use are next 'start'
Definition at line 315 of file BdbDomainOODB.cc.
References _impl, BdbIndexMode, indexMode(), and BdbImplDomainOODB::setIndexMode().
Referenced by BdbConditions::BdbConditions().
void BdbDomainOODB::setInhibitPolicy ( const BdbInhibitPolicy * policy ) [protected]
Setup an inhibit policy
Definition at line 327 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::setInhibitPolicy().
Referenced by BdbEventStore::instance(), and BdbConditions::instance().
void BdbDomainOODB::setLockWait ( d_Long waitMode = BdbcNoWait )
void BdbDomainOODB::setMrowMode ( BdbMode mrowMode ) [protected]
Sets the MROW mode to use when starting the next transaction
Definition at line 321 of file BdbDomainOODB.cc.
References _impl, BdbMode, mrowMode(), and BdbImplDomainOODB::setMrowMode().
Referenced by updateAndWait().
void BdbDomainOODB::setRpcTimeout ( d_Long secs )
Set the current RPC Timeout interval
Definition at line 362 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::setRpcTimeout().
Referenced by BdbTransactionMgr::prepareObjy().
void BdbDomainOODB::setStandalone ( )
Set the flag indicating whether the jobs is standalone
Definition at line 248 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::setStandalone().
Referenced by main().
BdbStatus BdbDomainOODB::startNestedRead ( BdbNestingOptToken optToken = BdbcInValidNestingOptToken )
Start new nested transaction in read mode
Definition at line 733 of file BdbDomainOODB.cc.
References _impl, activate(), BdbNestingOptToken, and BdbImplDomainOODB::startNestedRead().
Referenced by BdbParamHandler::compIsRegistered(), BdbAdminDbgMgr::displayRegistryDbsWEP(), BdbParamHandler::doResynch(), BdbAbsRegularClustH::getAllFullDbs(), CdbBdbSUtils::getLocalDbIdRange(), BdbCondDatabaseBase::initializeOriginName(), BdbCondDdOprDbIdRange::operation(), BdbTransactionMgr::prepare(), BdbAuthFederation::startShortReadTransaction(), BdbEventInput::validate(), and CdbBdbSUtils::verifyDbIdRange().
BdbStatus BdbDomainOODB::startNestedUpdate ( BdbNestingOptToken optToken = BdbcInValidNestingOptToken )
Start new nested transaction in update mode
Definition at line 740 of file BdbDomainOODB.cc.
References _impl, activate(), BdbNestingOptToken, and BdbImplDomainOODB::startNestedUpdate().
Referenced by BdbNestedTransCollTFactory< T >::getCollection(), BdbParamHandler::incrPageCounter(), BdbParamHandler::initPageCounter(), BdbNestedTransCollTFactory< T >::regetCollection(), BdbParamHandler::registerComponent(), BdbDbRegistrator::registerDb(), BdbAbsRegularClustH::registerExtraPages(), BdbAbsRegularClustH::removeFullDbsFromRegistry(), BdbDbAccessMgr::setExclLock(), BdbParamHandler::tryFindExtraSpace(), and BdbParamHandler::updateForceNewDb().
BdbStatus BdbDomainOODB::startRead ( const char * theTag = 0 )
BdbStatus BdbDomainOODB::startUpdate ( const char * theTag = 0 )
BdbTransId BdbDomainOODB::transId ( )
- Returns:
- unique identifier (if transaction is in progress)
Definition at line 404 of file BdbDomainOODB.cc.
References _impl, and BdbImplDomainOODB::transId().
Referenced by BdbAbsHandleCacheEntry::BdbAbsHandleCacheEntry(), BdbSrvAbsBaseClustH::transactionChanged(), BdbAbsBaseClustH::transactionChanged(), and BdbAbsHandleCacheEntry::transChanged().
d_Boolean BdbDomainOODB::transIsOpen ( )
returns 'true' if the transaction for this domain is oepn
Definition at line 567 of file BdbDomainOODB.cc.
References _impl, BdbcNoOpen, and BdbImplDomainOODB::mode().
Referenced by BdbTransactionMgr::conditionalCheckPoint(), BdbTransactionMgr::conditionalStart(), BdbEventOutput::doCommit(), BdbEventInput::endJob(), BdbEventInput::inputEvent(), BdbEventInput::openCollection(), and BdbEventMerge::prepareCollection().
BdbStatus BdbDomainOODB::updateAndWait ( BdbHandleAny theHandles[], int nrElem, const char *const thePrefix, d_ULong timeout = 60 )
Attempt to gain update access to a list of objects. An initial attempt is make with no timeout. If that fails, a retry with a timeout of 1 minute is tried. If this fails, a warning message is displayed, and this is repeated every minute up to the timeout limit (in minutes).
Definition at line 469 of file BdbDomainOODB.cc.
References BdbcError, BdbcNoWait, BdbcSuccess, BdbHandleAny, BdbMode, BdbStatus, commit(), COUT1, d_False, d_True, lockWait(), mrowMode(), result, setLockWait(), setMrowMode(), and startUpdate().
BdbStatus BdbDomainOODB::updateAndWait ( BdbHandleAny & theObj, const char *const thePrefix, d_ULong timeout = 60 )
Attempt to gain update access to an object. An initial attempt is made with no timeout. If that fails, a retry with a timeout of 1 minute is tried. If this fails, a warning message is displayed, and this is repeated every minute up to the timeout limit (in minutes).
Definition at line 418 of file BdbDomainOODB.cc.
References BdbcError, BdbcSuccess, BdbHandleAny, BdbMode, BdbStatus, commit(), COUT1, lockWait(), mrowMode(), result, setLockWait(), setMrowMode(), and startUpdate().
Referenced by BdbTreeCollectionT< T >::add(), BdbAbsCollectionT< T >::add(), BdbTreeCollectionT< T >::addCollection(), BdbBridgeCollectionT< T >::addCollection(), BdbAbsCollectionT< T >::clear(), BdbAbsCollectionT< T >::fetchMetaData(), BdbTreeNode::makeRootChild(), BdbEventStore::moveCollection(), BdbAbsCollectionT< T >::remove(), BdbTreeCollectionT< T >::removeCollection(), BdbBridgeCollectionT< T >::removeCollection(), and BdbTreeNode::updateAndWait().
Member Data Documentation
d_ULong BdbDomainOODB::_activationCount [static, private]
Referenced by activate(), and deactivate().
BdbImplDomainOODB* BdbDomainOODB::_impl [private]
d_Boolean BdbDomainOODB::_isActive [private]
Definition at line 522 of file BdbDomainOODB.hh.
BdbDomainOODB* BdbDomainOODB::_next [private]
pointers to implement ring of BdbDomainOODB
Definition at line 525 of file BdbDomainOODB.hh.
Referenced by addToRing(), matchLabel(), removeFromRing(), and ~BdbDomainOODB().
BdbDomainOODB* BdbDomainOODB::_previous [private]
Definition at line 526 of file BdbDomainOODB.hh.
Referenced by addToRing(), removeFromRing(), and ~BdbDomainOODB().
BdbDomainOODB * BdbDomainOODB::_ringEntrance [static, private]
Referenced by activeDomainOODB(), BdbDomainOODB(), and ~BdbDomainOODB().
The documentation for this class was generated from the following files:
- /BdbDomainOODB/BdbDomainOODB.hh
- /BdbDomainOODB/BdbDomainOODB.cc
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002