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

CdbBdbSMasterRegistryP Class Reference

Master registry class. More...

Inheritance diagram for CdbBdbSMasterRegistryP:

CdbBdbSRegistryP BdbPersObj List of all members.

Public Member Functions

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

virtual ~CdbBdbSMasterRegistryP ()
 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, const BdbTime &theCreationTime)
 Factory method for objects of this class.


Detailed Description

Master registry class.

Definition at line 14 of file CdbBdbSMasterRegistryP.ddl.


Constructor & Destructor Documentation

CdbBdbSMasterRegistryP::CdbBdbSMasterRegistryP const char *    theDescription,
const BdbTime   theCreationTime
 

Normal constructor.

The "id" of the MASTER database is the same as its creation time.

ATTENTION: Use the above defined static factory method to create persistent objects of this class.

See also:
CdbBdbSMasterRegistryP::create()
Parameters:
theDescription  the description of the database
theCreationTime  the time when the database is supposed to be created

Definition at line 122 of file CdbBdbSMasterRegistryP.cc.

References BdbRef(), CdbBdbSClusterCollectionP, CdbBdbSRegistryP::defaultDbIdRange(), CdbBdbSOriginP::FIRST_ID, CdbBdbSUtils::getLocalDbIdRange(), CdbBdbSRegistryP::id(), and CdbBdbSOriginP::LAST_ID.

Referenced by create().

CdbBdbSMasterRegistryP::~CdbBdbSMasterRegistryP   [virtual]
 

Destructor.

Definition at line 212 of file CdbBdbSMasterRegistryP.cc.


Member Function Documentation

virtual CdbBdbSMasterRegistryP::BdbRef CdbBdbSRallocatorP< d_UShort >    const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSMasterRegistryP::BdbRef CdbBdbSRallocatorP< d_UShort >    const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSMasterRegistryP::BdbRef CdbBdbSRallocatorP< d_UShort >    const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSMasterRegistryP::BdbRef CdbBdbSClusterCollectionP    const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSMasterRegistryP::BdbRef CdbBdbSPartitionsLayoutP    const [virtual]
 

Implements CdbBdbSRegistryP.

virtual CdbBdbSMasterRegistryP::BdbRef CdbBdbSOriginCollectionP    const [virtual]
 

Implements CdbBdbSRegistryP.

Referenced by CdbBdbSMasterRegistryP().

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

Factory method for objects of this class.

IMPORTANT: This operation can only be run against a federation, which does not have any CDB infrastructure.

The "id" of the MASTER database is the same as its creation time.

Parameters:
theRegistryH  the resulting persistent object
theDescription  the description of the database
theCreationTime  the time when the database is supposed to be created

Definition at line 25 of file CdbBdbSMasterRegistryP.cc.

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

bool CdbBdbSMasterRegistryP::isMaster   const [virtual]
 

Check if it's the master.

Implements CdbBdbSRegistryP.

Definition at line 224 of file CdbBdbSMasterRegistryP.cc.


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