OmniEvents
OmniEvents::EventChannelFactory_i Class Reference

#include <EventChannelFactory.h>

Inheritance diagram for OmniEvents::EventChannelFactory_i:
Collaboration diagram for OmniEvents::EventChannelFactory_i:

Public Member Functions

CORBA::Boolean supports (const CosLifeCycle::Key &k)
 Returns true if the key passed has the following contents:
 
CORBA::Object_ptr create_object (const CosLifeCycle::Key &k, const CosLifeCycle::Criteria &the_criteria)
 
CORBA::Boolean is_alive ()
 'ping' method inherited from FT::PullMonitorable.
 
CosEventChannelAdmin::EventChannel_ptr create_channel (const char *channel_name)
 DO NOT USE.
 
CosEventChannelAdmin::EventChannel_ptr join_channel (const char *channel_name)
 DO NOT USE.
 
 EventChannelFactory_i (const PersistNode &node)
 Builds an EventChannelFactory_i from the parsed logfile data.
 
virtual ~EventChannelFactory_i ()
 
PersistNodeparseCriteria (const CosLifeCycle::Criteria &criteria) const
 Convert CosLifeCycle::Criteria into a PersistNode.
 
CosLifeCycle::Criteria extract (const char *name, const CosLifeCycle::Criteria &from) const
 Utility function: constructs a Criteria that contains a single criterion.
 
void output (ostream &os)
 
- Public Member Functions inherited from OmniEvents::Servant
virtual PortableServer::POA_ptr _default_POA ()
 
virtual ~Servant ()
 

Private Attributes

unsigned int _port
 The EventChannelFactory listens on this TCP port.
 
string _endPointNoListen
 Stores the value of the endPointNoListen ORB parameter.
 
EventChannelStore _channels
 

Additional Inherited Members

- Protected Member Functions inherited from OmniEvents::Servant
 Servant (PortableServer::POA_ptr poa)
 
void activateObjectWithId (const char *oidStr)
 Calls activate_object_with_id() to activate this servant in its POA.
 
void deactivateObject ()
 Calls deactivate_object() to deactivate this servant in its POA.
 
- Protected Attributes inherited from OmniEvents::Servant
PortableServer::POA_var _poa
 

Detailed Description

Definition at line 52 of file EventChannelFactory.h.

Constructor & Destructor Documentation

◆ EventChannelFactory_i()

OmniEvents::EventChannelFactory_i::EventChannelFactory_i ( const PersistNode node)

◆ ~EventChannelFactory_i()

OmniEvents::EventChannelFactory_i::~EventChannelFactory_i ( )
virtual

Definition at line 68 of file EventChannelFactory.cc.

References DB.

Member Function Documentation

◆ create_channel()

CosEventChannelAdmin::EventChannel_ptr OmniEvents::EventChannelFactory_i::create_channel ( const char channel_name)

DO NOT USE.

Only for OpenOrb compatibility.

Definition at line 128 of file EventChannelFactory.cc.

References create_object(), DB, IFELSE_OMNIORB4, and STR_MATCH.

◆ create_object()

CORBA::Object_ptr OmniEvents::EventChannelFactory_i::create_object ( const CosLifeCycle::Key &  k,
const CosLifeCycle::Criteria &  the_criteria 
)

Definition at line 87 of file EventChannelFactory.cc.

References _channels, OmniEvents::newUniqueId(), parseCriteria(), and supports().

Referenced by create_channel().

◆ extract()

CosLifeCycle::Criteria OmniEvents::EventChannelFactory_i::extract ( const char name,
const CosLifeCycle::Criteria &  from 
) const

Utility function: constructs a Criteria that contains a single criterion.

Used to generate Invalid Criteria exceptions.

Definition at line 293 of file EventChannelFactory.cc.

Referenced by parseCriteria().

◆ is_alive()

CORBA::Boolean OmniEvents::EventChannelFactory_i::is_alive ( )
inline

'ping' method inherited from FT::PullMonitorable.

Definition at line 70 of file EventChannelFactory.h.

◆ join_channel()

CosEventChannelAdmin::EventChannel_ptr OmniEvents::EventChannelFactory_i::join_channel ( const char channel_name)

DO NOT USE.

Only for OpenOrb compatibility.

Definition at line 172 of file EventChannelFactory.cc.

References OmniEvents::Orb::_omniINSPOA, DB, IFELSE_OMNIORB4, and OmniEvents::Orb::inst().

◆ output()

void OmniEvents::EventChannelFactory_i::output ( ostream os)

◆ parseCriteria()

PersistNode * OmniEvents::EventChannelFactory_i::parseCriteria ( const CosLifeCycle::Criteria &  criteria) const

Convert CosLifeCycle::Criteria into a PersistNode.

The caller is responsible for deleting the result.

Definition at line 197 of file EventChannelFactory.cc.

References DB, and extract().

Referenced by create_object().

◆ supports()

CORBA::Boolean OmniEvents::EventChannelFactory_i::supports ( const CosLifeCycle::Key &  k)

Returns true if the key passed has the following contents:

  • id : "EventChannel"
  • kind : "object interface"

Definition at line 75 of file EventChannelFactory.cc.

Referenced by create_object().

Member Data Documentation

◆ _channels

EventChannelStore OmniEvents::EventChannelFactory_i::_channels
private

Definition at line 114 of file EventChannelFactory.h.

Referenced by create_object(), EventChannelFactory_i(), and output().

◆ _endPointNoListen

string OmniEvents::EventChannelFactory_i::_endPointNoListen
private

Stores the value of the endPointNoListen ORB parameter.

omniORB4 allows us to encode backup server addresses into our object references.

Definition at line 112 of file EventChannelFactory.h.

Referenced by output().

◆ _port

unsigned int OmniEvents::EventChannelFactory_i::_port
private

The EventChannelFactory listens on this TCP port.

Equivalent to ORB parameter: endPoint = giop:::<_port>

Definition at line 107 of file EventChannelFactory.h.

Referenced by output().


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