ot::CORBAModule Class Reference
[Network Classes]
The module and factory to drive the test source nodes.
More...
#include <CORBAModule.h>
Inheritance diagram for ot::CORBAModule:


Public Member Functions | |
| CORBAModule () | |
| virtual | ~CORBAModule () |
| virtual void | init (StringTable &attributes, ConfigNode *localTree) |
| void | initializeORB (int argc, char **argv) |
| void | runORB () |
| void | destroyORB () |
| PortableServer::POA_var | getPOA () |
| virtual void | clear () |
| virtual Node * | createNode (const std::string &name, StringTable &attributes) |
| virtual void | pushEvent () |
Public Attributes | |
| PortableServer::POAManager_var | pman |
Protected Attributes | |
| CORBASinkVector | sinks |
| SourceNodeMap | sources |
| bool | persistent |
Private Attributes | |
| CORBA::ORB_var | orb |
| CORBA::Object_var | objref |
| PortableServer::POA_var | poa |
| PortableServer::POA_var | root_poa |
Detailed Description
The module and factory to drive the test source nodes.It constructs OTSource and OTSink nodes via the NodeFactory interface and pushes events into the tracker tree according to the nodes configuration.
- Author:
- Joseph Newman
Definition at line 73 of file CORBAModule.h.
Constructor & Destructor Documentation
| ot::CORBAModule::CORBAModule | ( | ) | [inline] |
| ot::CORBAModule::~CORBAModule | ( | ) | [virtual] |
Destructor method, clears nodes member.
Definition at line 129 of file CORBAModule.cxx.
References destroyORB(), and sinks.
Member Function Documentation
| void ot::CORBAModule::clear | ( | ) | [virtual] |
| Node * ot::CORBAModule::createNode | ( | const std::string & | name, | |
| StringTable & | attributes | |||
| ) | [virtual] |
This method is called to ruct a new Node.
It compares name to the TestSource element name, and if it matches creates a new TestSource node.
- Parameters:
-
name reference to string containing element name refenrence to StringMap containing attribute values
Implements ot::NodeFactory.
Definition at line 184 of file CORBAModule.cxx.
References ot::CORBAUtils::bindObjectReferenceToName(), ot::StringTable::get(), ot::CORBAUtils::getObjectId(), ot::CORBAUtils::getObjectReference(), LOG_ACE_INFO(), orb, persistent, poa, sinks, and sources.
| void ot::CORBAModule::destroyORB | ( | ) |
initializes CORBA orb
Definition at line 60 of file CORBAModule.cxx.
References orb.
Referenced by ~CORBAModule().
| PortableServer::POA_var ot::CORBAModule::getPOA | ( | ) | [inline] |
Definition at line 104 of file CORBAModule.h.
| void ot::CORBAModule::init | ( | StringTable & | attributes, | |
| ConfigNode * | localTree | |||
| ) | [virtual] |
initializes the tracker module.
This class provides an implementation that sets the initialization flag to true. Subclasses should call this method, if they override it, before doing anything else. It takes the attributes of the element configuring this module and a local tree consisting of the children of the element. This tree must be build of Nodes.
- Parameters:
-
attributes StringTable of elements attribute values. Should be possibly , but is not for convenience. localTree pointer to root of configuration nodes tree
Reimplemented from ot::Module.
Definition at line 135 of file CORBAModule.cxx.
References ot::StringTable::containsKey(), ot::StringTable::get(), ot::Module::init(), initializeORB(), and persistent.
| void ot::CORBAModule::initializeORB | ( | int | argc, | |
| char ** | argv | |||
| ) |
initializes CORBA orb
Definition at line 85 of file CORBAModule.cxx.
References objref, orb, persistent, pman, poa, and root_poa.
Referenced by init().
| void ot::CORBAModule::pushEvent | ( | ) | [virtual] |
pushes events into the tracker tree.
Checks all TestSources and pushes new events, if a TestSource fires.
Reimplemented from ot::Module.
Definition at line 234 of file CORBAModule.cxx.
References sources.
| void ot::CORBAModule::runORB | ( | ) |
block waiting for orb to be destroyed
Member Data Documentation
CORBA::Object_var ot::CORBAModule::objref [private] |
CORBA::ORB_var ot::CORBAModule::orb [private] |
Definition at line 123 of file CORBAModule.h.
Referenced by createNode(), destroyORB(), and initializeORB().
bool ot::CORBAModule::persistent [protected] |
Definition at line 80 of file CORBAModule.h.
Referenced by createNode(), init(), and initializeORB().
| PortableServer::POAManager_var ot::CORBAModule::pman |
PortableServer::POA_var ot::CORBAModule::poa [private] |
PortableServer::POA_var ot::CORBAModule::root_poa [private] |
CORBASinkVector ot::CORBAModule::sinks [protected] |
list of CORBASource nodes in the tree
Definition at line 78 of file CORBAModule.h.
Referenced by clear(), createNode(), and ~CORBAModule().
SourceNodeMap ot::CORBAModule::sources [protected] |
The documentation for this class was generated from the following files: