TAO_CosNotification 4.0.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
TAO_Notify::Standard_Event_Persistence_Factory Class Reference

Standard (i.e. default) implementation of Event_Persistence_Factory interface. More...

#include <Standard_Event_Persistence.h>

Inheritance diagram for TAO_Notify::Standard_Event_Persistence_Factory:
Inheritance graph
[legend]
Collaboration diagram for TAO_Notify::Standard_Event_Persistence_Factory:
Collaboration graph
[legend]

Public Member Functions

 Standard_Event_Persistence_Factory ()
 Constructor.
 
virtual ~Standard_Event_Persistence_Factory ()
 Destructor.
 
bool open (const ACE_TCHAR *filename, ACE_UINT32 block_size=512)
 
virtual Routing_Slip_Persistence_Managercreate_routing_slip_persistence_manager (Persistent_Callback *callback)
 Create a Persistence Manager.
 
virtual Routing_Slip_Persistence_Managerfirst_reload_manager ()
 
void done_reloading (Persistent_Storage_Block *next_psb, ACE_UINT64 current_serial_number)
 reloading process complete. Where should the chain continue?
 
void preallocate_next_record (ACE_UINT64 &current_serial_number, Persistent_Storage_Block *&current_psb, ACE_UINT64 &next_serial_number, ACE_UINT32 &next_block_number)
 
void get_preallocated_pointer (ACE_UINT64 &next_serial_number, ACE_UINT32 &next_block_number)
 
Persistent_File_Allocatorallocator ()
 
Routing_Slip_Persistence_Managerroot ()
 
- Public Member Functions inherited from TAO_Notify::Event_Persistence_Factory
virtual ~Event_Persistence_Factory ()
 

Public Attributes

TAO_SYNCH_MUTEX lock
 

Private Attributes

Persistent_File_Allocator allocator_
 
Routing_Slip_Persistence_Manager root_
 
Persistent_Storage_Blockpsb_
 
ACE_UINT64 serial_number_
 
bool is_reloading_
 

Detailed Description

Standard (i.e. default) implementation of Event_Persistence_Factory interface.

Constructor & Destructor Documentation

◆ Standard_Event_Persistence_Factory()

TAO_Notify::Standard_Event_Persistence_Factory::Standard_Event_Persistence_Factory ( )

Constructor.

◆ ~Standard_Event_Persistence_Factory()

TAO_Notify::Standard_Event_Persistence_Factory::~Standard_Event_Persistence_Factory ( )
virtual

Destructor.

Member Function Documentation

◆ allocator()

Persistent_File_Allocator * TAO_Notify::Standard_Event_Persistence_Factory::allocator ( )

Accessor for file allocator. Intended for use only by the Routing Slip Persistence Manager

◆ create_routing_slip_persistence_manager()

Routing_Slip_Persistence_Manager * TAO_Notify::Standard_Event_Persistence_Factory::create_routing_slip_persistence_manager ( Persistent_Callback * callback)
virtual

Create a Persistence Manager.

Implements TAO_Notify::Event_Persistence_Factory.

◆ done_reloading()

void TAO_Notify::Standard_Event_Persistence_Factory::done_reloading ( Persistent_Storage_Block * next_psb,
ACE_UINT64 current_serial_number )

reloading process complete. Where should the chain continue?

◆ first_reload_manager()

Routing_Slip_Persistence_Manager * TAO_Notify::Standard_Event_Persistence_Factory::first_reload_manager ( )
virtual

Begin the reload process by returning the first Routing_Slip_Persistence_Manager to continue call Routing_Slip_Persistence_Manager::load_next ()

Implements TAO_Notify::Event_Persistence_Factory.

◆ get_preallocated_pointer()

void TAO_Notify::Standard_Event_Persistence_Factory::get_preallocated_pointer ( ACE_UINT64 & next_serial_number,
ACE_UINT32 & next_block_number )

◆ open()

bool TAO_Notify::Standard_Event_Persistence_Factory::open ( const ACE_TCHAR * filename,
ACE_UINT32 block_size = 512 )

Open persistence file and initialize. /param filename the fully qualified path/name of the file to contain persistent information. /param block_size the size of a physical block on the device containing the file.

◆ preallocate_next_record()

void TAO_Notify::Standard_Event_Persistence_Factory::preallocate_next_record ( ACE_UINT64 & current_serial_number,
Persistent_Storage_Block *& current_psb,
ACE_UINT64 & next_serial_number,
ACE_UINT32 & next_block_number )

return current serial # and a psb containing current record# allocate new serial # and record number, and return those, too.

◆ root()

Routing_Slip_Persistence_Manager & TAO_Notify::Standard_Event_Persistence_Factory::root ( )

Access root record. Intended for use only by the Routing Slip Persistence Manager

Member Data Documentation

◆ allocator_

Persistent_File_Allocator TAO_Notify::Standard_Event_Persistence_Factory::allocator_
private

◆ is_reloading_

bool TAO_Notify::Standard_Event_Persistence_Factory::is_reloading_
private

◆ lock

TAO_SYNCH_MUTEX TAO_Notify::Standard_Event_Persistence_Factory::lock

◆ psb_

Persistent_Storage_Block* TAO_Notify::Standard_Event_Persistence_Factory::psb_
private

◆ root_

Routing_Slip_Persistence_Manager TAO_Notify::Standard_Event_Persistence_Factory::root_
private

◆ serial_number_

ACE_UINT64 TAO_Notify::Standard_Event_Persistence_Factory::serial_number_
private

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