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

OmniEvents::ProxyPullSupplier_i Class Reference

Servant for ProxyPullSupplier interface. More...

#include <ProxyPullSupplier.h>

Inheritance diagram for OmniEvents::ProxyPullSupplier_i:

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

Collaboration graph
[legend]
List of all members.

Public Methods

void connect_pull_consumer (CosEventComm::PullConsumer_ptr pullConsumer)
void disconnect_pull_supplier ()
CORBA::Any * pull ()
CORBA::Any * try_pull (CORBA::Boolean &has_event)
 ProxyPullSupplier_i (PortableServer::POA_ptr poa, EventQueue &q)
void reincarnate (const OEP_prxy &prxy)
 Re-create a servant from information saved in the log file. More...

void output (ostream &os)
 Save this object's state to a stream. More...


Private Attributes

CosEventComm::PullConsumer::_var_type _target

Detailed Description

Servant for ProxyPullSupplier interface.

Does not properly implement the blocking pull() method - to do so would need us to create and park a thread for each waiting pull() method. Instead pull() throws TRANSIENT if the event queue is empty.

Definition at line 69 of file ProxyPullSupplier.h.


Constructor & Destructor Documentation

OmniEvents::ProxyPullSupplier_i::ProxyPullSupplier_i PortableServer::POA_ptr    poa,
EventQueue   q
 

Definition at line 142 of file ProxyPullSupplier.cc.


Member Function Documentation

void OmniEvents::ProxyPullSupplier_i::connect_pull_consumer CosEventComm::PullConsumer_ptr    pullConsumer
 

Definition at line 73 of file ProxyPullSupplier.cc.

References OmniEvents::Proxy::_req, _target, and OmniEvents::Servant::deactivateObject().

Referenced by reincarnate().

void OmniEvents::ProxyPullSupplier_i::disconnect_pull_supplier  
 

Definition at line 95 of file ProxyPullSupplier.cc.

References _target, DB, and OmniEvents::Servant::deactivateObject().

void OmniEvents::ProxyPullSupplier_i::output ostream &    os [virtual]
 

Save this object's state to a stream.

Implements OmniEvents::Proxy.

Definition at line 162 of file ProxyPullSupplier.cc.

References _target, and OmniEvents::Servant::basicOutput().

CORBA::Any * OmniEvents::ProxyPullSupplier_i::pull  
 

Definition at line 115 of file ProxyPullSupplier.cc.

References OmniEvents::EventQueue::Reader::moreEvents(), and OmniEvents::EventQueue::Reader::nextEvent().

void OmniEvents::ProxyPullSupplier_i::reincarnate const OEP_prxy   prxy [virtual]
 

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

Implements OmniEvents::Proxy.

Definition at line 153 of file ProxyPullSupplier.cc.

References OmniEvents::Servant::activateObjectWithId(), connect_pull_consumer(), OEP_prxy::getIor(), and OEP_prxy::getKey().

CORBA::Any * OmniEvents::ProxyPullSupplier_i::try_pull CORBA::Boolean &    has_event
 

Definition at line 126 of file ProxyPullSupplier.cc.

References OmniEvents::EventQueue::Reader::moreEvents(), and OmniEvents::EventQueue::Reader::nextEvent().


Member Data Documentation

CosEventComm::PullConsumer::_var_type OmniEvents::ProxyPullSupplier_i::_target [private]
 

Definition at line 84 of file ProxyPullSupplier.h.

Referenced by connect_pull_consumer(), disconnect_pull_supplier(), and output().


The documentation for this class was generated from the following files:
Generated on Fri Dec 12 10:53:15 2003 for OmniEvents by doxygen1.2.15