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

CdbBdbSPartitionListenerP Class Reference

Base class for a persistent Listener. More...

Inheritance diagram for CdbBdbSPartitionListenerP:

BdbPersObj CdbBdbSPartitionsLayoutP List of all members.

Public Member Functions

virtual ~CdbBdbSPartitionListenerP ()
 Destructor.

virtual CdbStatus close (d_UShort theId)=0
 Close a partition.


Detailed Description

Base class for a persistent Listener.

This is an abstract persistent class providing the listening methods to be called when the state of a partition changes.

Definition at line 16 of file CdbBdbSPartitionListenerP.ddl.


Constructor & Destructor Documentation

CdbBdbSPartitionListenerP::~CdbBdbSPartitionListenerP   [virtual]
 

Destructor.

See also:
CdbBdbSPartitionListenerP

Definition at line 13 of file CdbBdbSPartitionListenerP.cc.


Member Function Documentation

virtual CdbStatus CdbBdbSPartitionListenerP::close d_UShort    theId [pure virtual]
 

Close a partition.

The partition closure time will be taken from a persistent partition object corresponding to the specified (the partition) identifier. The idea behind this is that the partition closing operation is made of two steps done sequentially:

  • close a persistent partition object at the MASTER or a SLAVE database
  • update the PartitionLayout.

This actually highlights one important idea that the only reliable source of a partition's "openness" is the persistent partition object itself.

The method will return CdbStatus::NotFound if the partition was not found in the layout. Other possible completion statuses are as usual.

This pure virtual method is supposed to be implemented by a subclass.

Parameters:
theId  the partition's identifier

Implemented in CdbBdbSPartitionsLayoutP.


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