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

CdbBdbSTestRegistryP Class Reference

A Registry for the TEST kind of databases. More...

Inheritance diagram for CdbBdbSTestRegistryP:

CdbBdbSRegistryP BdbPersObj List of all members.

Public Member Functions

 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 Member Functions

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


Detailed Description

A Registry for the TEST kind of databases.

See details below.

Definition at line 15 of file CdbBdbSTestRegistryP.ddl.


Constructor & Destructor Documentation

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 119 of file CdbBdbSTestRegistryP.cc.

References CdbBdbSRegistryP::defaultDbIdRange(), and CdbBdbSUtils::getLocalDbIdRange().

Referenced by create().

CdbBdbSTestRegistryP::~CdbBdbSTestRegistryP   [virtual]
 

Destructor.

Definition at line 143 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 25 of file CdbBdbSTestRegistryP.cc.

References CdbBdbSTestRegistryP(), CdbBdbSRegistryP::defaultDbIdRange(), CdbStatus::Error, CdbBdbSRegistryP::findLocal(), CdbBdbSRegistryP::findMaster(), CdbBdbSUtils::getLocalDbIdRange(), and CdbStatus::Success.

bool CdbBdbSTestRegistryP::isMaster   const [virtual]
 

Check if it's the master.

Implements CdbBdbSRegistryP.

Definition at line 147 of file CdbBdbSTestRegistryP.cc.


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:20 2005 for CDB by doxygen1.3-rc3