Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CdbBdbSTestRegistryP Class Reference
[CdbBdbShared]

Inheritance diagram for CdbBdbSTestRegistryP:

CdbBdbSRegistryP BdbPersObj List of all members.

Public Methods

 CdbBdbSTestRegistryP (const char *theDescription, const BdbTime &theCreationTime, const BdbTime &theId)
 Normal constructor.

virtual ~CdbBdbSTestRegistryP ()
 Destructor.

virtual bool isMaster () const
 Check if it's the master.

virtual BdbRef (CdbBdbSOriginCollectionP) originCollection() const
virtual BdbRef (CdbBdbSPartitionsLayoutP) partitionsLayout() const
virtual BdbRef (CdbBdbSClusterCollectionP) pClusterCollection() const
virtual BdbRef (CdbBdbSRallocatorP< d_UShort >) originRallocator() const
virtual BdbRef (CdbBdbSRallocatorP< d_UShort >) partitionRallocator() const
virtual BdbRef (CdbBdbSRallocatorP< d_UShort >) pClusterRallocator() const

Static Public Methods

CdbStatus create (BdbHandle(CdbBdbSRegistryP)&theRegistryH, const char *theDescription)
 Factory method for objects of this class.


Private Methods

 CdbBdbSTestRegistryP ()
 Default constructor (NOT IMPLEMENTED).


Constructor & Destructor Documentation

CdbBdbSTestRegistryP::CdbBdbSTestRegistryP   [private]
 

Default constructor (NOT IMPLEMENTED).

Referenced by create().

CdbBdbSTestRegistryP::CdbBdbSTestRegistryP const char *    theDescription,
const BdbTime   theCreationTime,
const BdbTime   theId
 

Normal constructor.

NOTES:

  • the "id" of a TEST database must be the same as its MASTER's one.
ATTENTION: Use the above defined static factory method to create persistent objects of this class.

See also:
CdbBdbSTestRegistryP::create()
Parameters:
theDescription  the description of the database
theCreationTime  the time when the database is supposed to be created
theId  the unique identifier of the whole Condition/DB database

Definition at line 114 of file CdbBdbSTestRegistryP.cc.

References CdbBdbSRegistryP::defaultDbIdRange(), CdbBdbSUtils::getLocalDbIdRange(), result, CdbStatus::Success, and true.

CdbBdbSTestRegistryP::~CdbBdbSTestRegistryP   [virtual]
 

Destructor.

Definition at line 138 of file CdbBdbSTestRegistryP.cc.


Member Function Documentation

virtual CdbBdbSTestRegistryP::BdbRef CdbBdbSRallocatorP< d_UShort   const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSTestRegistryP::BdbRef CdbBdbSRallocatorP< d_UShort   const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSTestRegistryP::BdbRef CdbBdbSRallocatorP< d_UShort   const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSTestRegistryP::BdbRef CdbBdbSClusterCollectionP    const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSTestRegistryP::BdbRef CdbBdbSPartitionsLayoutP    const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSTestRegistryP::BdbRef CdbBdbSOriginCollectionP    const [virtual]
 

Implements CdbBdbSRegistryP.

CdbStatus CdbBdbSTestRegistryP::create BdbHandle(CdbBdbSRegistryP)&    theRegistryH,
const char *    theDescription
[static]
 

Factory method for objects of this class.

IMPORTANT: This operation can only be run against a federation, which already loaded with CDB infrastructure for the corresponding MASTER database.

The parameters of the registry will be inquired from the collection of origins found at the MASTER's federation.

Parameters:
theRegistryH  the resulting persistent object
theDescription  the description of the database

Definition at line 20 of file CdbBdbSTestRegistryP.cc.

References BdbContObj, BdbHandle, BdbIsNull, CdbBdbSTestRegistryP(), cout, CdbBdbSRegistryP::defaultDbIdRange(), CdbStatus::Error, CdbBdbSRegistryP::findLocal(), CdbBdbSRegistryP::findMaster(), CdbBdbSUtils::getLocalDbIdRange(), BdbAbsBaseClustH::newContainerCreated(), BdbTime::now(), result, CdbStatus::Success, and BdbCustomClustH::updatedHint().

Referenced by cmd_CreateTest(), and cmd_initialize_test().

bool CdbBdbSTestRegistryP::isMaster   [virtual]
 

Check if it's the master.

Implements CdbBdbSRegistryP.

Definition at line 142 of file CdbBdbSTestRegistryP.cc.


The documentation for this class was generated from the following files:

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002