Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

OmniEvents::Proxy Class Reference

Base class for three of the four Proxy servants. More...

#include <ProxyManager.h>

Inheritance diagram for OmniEvents::Proxy:

Inheritance graph
[legend]
Collaboration diagram for OmniEvents::Proxy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Proxy ()
virtual void reincarnate (const string &oid, const PersistNode &node)=0
 Re-create a servant from information saved in the log file.
virtual void output (ostream &os)=0
 Save this object's state to a stream.

Protected Member Functions

 Proxy (PortableServer::POA_ptr poa)
void keyOutput (ostream &os, const char *name)
 Helper method for constructing persistency output.
void eraseKey (const char *name)
 Helper method for constructing persistency output.
void basicOutput (ostream &os, const char *name, CORBA::Object_ptr target=CORBA::Object::_nil(), const char *extraAttributes=NULL)
 Helper method for constructing persistency output.

Protected Attributes

CORBA::Request_var _req

Private Member Functions

 Proxy (const Proxy &)
 NO IMPLEMENTATION.

Detailed Description

Base class for three of the four Proxy servants.

Proxy servants are stored in a ProxyManager. There is one Proxy servant for each CORBA proxy object. (Compare with ProxyPushConsumer_i, where all objects are implemented by a single servant.)

Definition at line 104 of file ProxyManager.h.


Constructor & Destructor Documentation

OmniEvents::Proxy::~Proxy  )  [virtual]
 

Definition at line 163 of file ProxyManager.cc.

References _req, OmniEvents::Orb::deferredRequest(), and OmniEvents::Orb::inst().

OmniEvents::Proxy::Proxy PortableServer::POA_ptr  poa  )  [protected]
 

Definition at line 172 of file ProxyManager.cc.

OmniEvents::Proxy::Proxy const Proxy  )  [private]
 

NO IMPLEMENTATION.


Member Function Documentation

void OmniEvents::Proxy::basicOutput ostream &  os,
const char *  name,
CORBA::Object_ptr  target = CORBA::Object::_nil(),
const char *  extraAttributes = NULL
[protected]
 

Helper method for constructing persistency output.

Definition at line 201 of file ProxyManager.cc.

References OmniEvents::Orb::_orb, OmniEvents::Orb::inst(), and keyOutput().

Referenced by OmniEvents::ProxyPushSupplier_i::output(), OmniEvents::ProxyPullSupplier_i::output(), and OmniEvents::ProxyPullConsumer_i::output().

void OmniEvents::Proxy::eraseKey const char *  name  )  [protected]
 

Helper method for constructing persistency output.

Definition at line 189 of file ProxyManager.cc.

References OmniEvents::omniEventsLog::exists(), keyOutput(), and OmniEvents::WriteLock::os.

Referenced by OmniEvents::ProxyPullConsumer_i::collect(), OmniEvents::ProxyPullConsumer_i::disconnect_pull_consumer(), OmniEvents::ProxyPullSupplier_i::disconnect_pull_supplier(), and OmniEvents::ProxyPushSupplier_i::disconnect_push_supplier().

void OmniEvents::Proxy::keyOutput ostream &  os,
const char *  name
[protected]
 

Helper method for constructing persistency output.

Definition at line 179 of file ProxyManager.cc.

References OmniEvents::Servant::_poa.

Referenced by basicOutput(), and eraseKey().

virtual void OmniEvents::Proxy::output ostream &  os  )  [pure virtual]
 

Save this object's state to a stream.

Implemented in OmniEvents::ProxyPullConsumer_i, OmniEvents::ProxyPullSupplier_i, and OmniEvents::ProxyPushSupplier_i.

virtual void OmniEvents::Proxy::reincarnate const string &  oid,
const PersistNode node
[pure virtual]
 

Re-create a servant from information saved in the log file.

Implemented in OmniEvents::ProxyPullConsumer_i, OmniEvents::ProxyPullSupplier_i, and OmniEvents::ProxyPushSupplier_i.

Referenced by OmniEvents::ProxyManager::reincarnate().


Member Data Documentation

CORBA::Request_var OmniEvents::Proxy::_req [protected]
 

Definition at line 128 of file ProxyManager.h.

Referenced by OmniEvents::ProxyPullConsumer_i::collect(), OmniEvents::ProxyPullSupplier_i::connect_pull_consumer(), OmniEvents::ProxyPullConsumer_i::connect_pull_supplier(), OmniEvents::ProxyPushSupplier_i::connect_push_consumer(), OmniEvents::ProxyPullConsumer_i::triggerRequest(), and ~Proxy().


The documentation for this class was generated from the following files:
Generated on Fri Aug 26 20:56:16 2005 for OmniEvents by  doxygen 1.4.3-20050530