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

OmniEvents::ConsumerAdmin_i Class Reference

#include <ConsumerAdmin.h>

Inheritance diagram for OmniEvents::ConsumerAdmin_i:

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

Collaboration graph
[legend]
List of all members.

Public Methods

CosEventChannelAdmin::ProxyPushSupplier_ptr obtain_push_supplier ()
CosEventChannelAdmin::ProxyPullSupplier_ptr obtain_pull_supplier ()
 ConsumerAdmin_i (const EventChannel_i &channel, PortableServer::POA_ptr poa)
 ConsumerAdmin_i (const EventChannel_i &channel, PortableServer::POA_ptr poa, const OEP_caps &caps)
virtual ~ConsumerAdmin_i ()
void send (list< CORBA::Any * > &events)
 Queues up events for sending to consumers. More...

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


Static Public Methods

void discard (list< CORBA::Any * > &events)
 Throws away events, when there are no consumers for them. More...


Private Attributes

EventQueue _queue
ProxyPushSupplierManager_pushSupplier
ProxyPullSupplierManager_pullSupplier

Constructor & Destructor Documentation

OmniEvents::ConsumerAdmin_i::ConsumerAdmin_i const EventChannel_i   channel,
PortableServer::POA_ptr    poa
 

Definition at line 53 of file ConsumerAdmin.cc.

References OmniEvents::Servant::activateObjectWithId().

OmniEvents::ConsumerAdmin_i::ConsumerAdmin_i const EventChannel_i   channel,
PortableServer::POA_ptr    poa,
const OEP_caps   caps
 

Definition at line 66 of file ConsumerAdmin.cc.

References OmniEvents::Servant::_poa, _pullSupplier, _pushSupplier, _queue, OmniEvents::Servant::activateObjectWithId(), and OmniEvents::ProxyManager::reincarnate().

OmniEvents::ConsumerAdmin_i::~ConsumerAdmin_i   [virtual]
 

Definition at line 95 of file ConsumerAdmin.cc.

References _pullSupplier, and _pushSupplier.


Member Function Documentation

void OmniEvents::ConsumerAdmin_i::discard list< CORBA::Any * > &    events [static]
 

Throws away events, when there are no consumers for them.

On exit, the 'events' parameter is empty.

Definition at line 128 of file ConsumerAdmin.cc.

CosEventChannelAdmin::ProxyPullSupplier_ptr OmniEvents::ConsumerAdmin_i::obtain_pull_supplier  
 

Definition at line 45 of file ConsumerAdmin.cc.

References OmniEvents::Servant::_poa, _pullSupplier, _queue, and OmniEvents::ProxyPullSupplierManager::createObject().

CosEventChannelAdmin::ProxyPushSupplier_ptr OmniEvents::ConsumerAdmin_i::obtain_push_supplier  
 

Definition at line 36 of file ConsumerAdmin.cc.

References OmniEvents::Servant::_poa, _pushSupplier, _queue, and OmniEvents::ProxyPushSupplierManager::createObject().

void OmniEvents::ConsumerAdmin_i::output ostream &    os
 

Save this object's state to a stream.

Definition at line 140 of file ConsumerAdmin.cc.

References _pullSupplier, _pushSupplier, OmniEvents::Servant::basicOutput(), and OmniEvents::ProxyManager::output().

Referenced by OmniEvents::EventChannel_i::output().

void OmniEvents::ConsumerAdmin_i::send list< CORBA::Any * > &    events
 

Queues up events for sending to consumers.

Takes ownership of the events. On exit, the 'events' parameter is empty.

Definition at line 110 of file ConsumerAdmin.cc.

References OmniEvents::ProxyPushSupplierManager::_condition, OmniEvents::ProxyPushSupplierManager::_lock, _pushSupplier, _queue, OmniEvents::EventQueue::append(), and DB.

Referenced by OmniEvents::EventChannel_i::run().


Member Data Documentation

ProxyPullSupplierManager* OmniEvents::ConsumerAdmin_i::_pullSupplier [private]
 

Definition at line 88 of file ConsumerAdmin.h.

Referenced by ConsumerAdmin_i(), obtain_pull_supplier(), output(), and ~ConsumerAdmin_i().

ProxyPushSupplierManager* OmniEvents::ConsumerAdmin_i::_pushSupplier [private]
 

Definition at line 87 of file ConsumerAdmin.h.

Referenced by ConsumerAdmin_i(), obtain_push_supplier(), output(), send(), and ~ConsumerAdmin_i().

EventQueue OmniEvents::ConsumerAdmin_i::_queue [private]
 

Definition at line 86 of file ConsumerAdmin.h.

Referenced by ConsumerAdmin_i(), obtain_pull_supplier(), obtain_push_supplier(), and send().


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