artefaktur
software engineer &        architecture

 
 
 
 

class AORB

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdkx::orb::AORB Class Reference

#include <AORB.h>

Inheritance diagram for acdkx::orb::AORB:

acdk::lang::Thread org::omg::CORBA::ORB acdk::lang::Object acdk::lang::Runnable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Public Member Functions

 AORB ()
static::org::omg::CORBA::RORB getORB ()
void init (IN(RStringArray) args, IN(acdk::util::RProperties) props)
 initialize this orb.

int port ()
 return the port number of the local server

RString serverHost ()
void setGIOPVersion (int major, int minor)
virtual RStringArray list_initial_services ()
virtual::org::omg::CORBA::RObject resolve_initial_references (IN(RString) identifier) throw ( RInvalidName )
virtual void connect (IN(::org::omg::CORBA::RObject) obj)
virtual bool work_pending ()
 single threaded not supported

virtual void perform_work ()
 single threaded not supported

virtual void run ()
 run the ORB-Server.

virtual void start ()
 run the ORB server in background

virtual void shutdown (bool wait_for_completion)
 stop reading Messages

virtual void destroy ()
 If the ORB was shutdown, it restarts here.

virtual RString impl_is_ready (IN(::acdk::lang::RObject) obj)
 nonstandard register object for testing

bool _doShutdown ()
acdk::lang::Object resolve_object (AServerRequestImpl &req)
acdk::lang::Object object_key_to_object (sequence< octet > &object_key)
virtual RString object_to_string (IN(::org::omg::CORBA::RObject) obj)
 java standard

virtual::org::omg::CORBA::RObject string_to_object (IN(RString) str)
 java standard

::org::omg::CORBA::RObject corbaloc_to_object (IN(RString) str)
bool isOwnObjectId (IN(RObjectKey) key)

Static Public Member Functions

AORBgetAORB ()
void reset ()
 reset ORB deletes ORB and set it up

const acdk::lang::dmi::ClazzMethodInfolookupMethod (IN(RString) method, const dmi::ClazzInfo *clazz)
RString getLocalHost ()
 returns the local host

int getLocalPort ()
 returns the local Server Port

int _lookupFreePort ()
RServerDelegate createProxy (IN(RObjectKey) key)

Public Attributes

bool ignoreLocal
 always use network

bool ignoreDmiOverGIOP
 don't use DMI over GIOP


Private Member Functions

void _initServer ()
 initialize the ORB Server


Private Attributes

RString _serverHost
int _port
RHashMap _objects
 key: ::acdk::lang::RObject value: RObjectKey

RHashMap _objectsIds
 key: RcharArray object_id; value: RObjectKey

bool _shutdown
RThreadGroup _treadGroup
bool _isServer
acdk::lang::Object _theObject
 ### test only

::org::omg::CORBA::GIOP::Version _giopVersion
::acdk::net::RServerSocket _serverSocket
::acdk::util::RProperties _properties

Static Private Attributes

RAORB _theORB

Constructor & Destructor Documentation

acdkx::orb::AORB::AORB  ) 
 


Member Function Documentation

bool acdkx::orb::AORB::_doShutdown  )  [inline]
 

void acdkx::orb::AORB::_initServer  )  [private]
 

initialize the ORB Server

int acdkx::orb::AORB::_lookupFreePort  )  [static]
 

virtual void acdkx::orb::AORB::connect IN(::org::omg::CORBA::RObject obj  )  [virtual]
 

Implements org::omg::CORBA::ORB.

::org::omg::CORBA::RObject acdkx::orb::AORB::corbaloc_to_object IN(RString str  ) 
 

RServerDelegate acdkx::orb::AORB::createProxy IN(RObjectKey key  )  [static]
 

virtual void acdkx::orb::AORB::destroy  )  [virtual]
 

If the ORB was shutdown, it restarts here.

Reimplemented from acdk::lang::Thread.

AORB& acdkx::orb::AORB::getAORB  )  [static]
 

RString acdkx::orb::AORB::getLocalHost  )  [static]
 

returns the local host

int acdkx::orb::AORB::getLocalPort  )  [static]
 

returns the local Server Port

static ::org::omg::CORBA::RORB acdkx::orb::AORB::getORB  )  [inline]
 

virtual RString acdkx::orb::AORB::impl_is_ready IN(::acdk::lang::RObject obj  )  [virtual]
 

nonstandard register object for testing

Implements org::omg::CORBA::ORB.

void acdkx::orb::AORB::init IN(RStringArray args,
IN(acdk::util::RProperties props
 

initialize this orb.

This method also reads the file $ACDKHOME/cfgs/acdkx_orb.cfg

Parameters:
args commandline arguments
props properties which used as basic initialization and also will return new set values

Reimplemented from org::omg::CORBA::ORB.

bool acdkx::orb::AORB::isOwnObjectId IN(RObjectKey key  ) 
 

virtual RStringArray acdkx::orb::AORB::list_initial_services  )  [virtual]
 

Implements org::omg::CORBA::ORB.

const acdk::lang::dmi::ClazzMethodInfo* acdkx::orb::AORB::lookupMethod IN(RString method,
const dmi::ClazzInfo *  clazz
[static]
 

acdk::lang::Object acdkx::orb::AORB::object_key_to_object sequence< octet > &  object_key  ) 
 

virtual RString acdkx::orb::AORB::object_to_string IN(::org::omg::CORBA::RObject obj  )  [virtual]
 

java standard

Implements org::omg::CORBA::ORB.

virtual void acdkx::orb::AORB::perform_work  )  [virtual]
 

single threaded not supported

Implements org::omg::CORBA::ORB.

int acdkx::orb::AORB::port  ) 
 

return the port number of the local server

void acdkx::orb::AORB::reset  )  [static]
 

reset ORB deletes ORB and set it up

virtual ::org::omg::CORBA::RObject acdkx::orb::AORB::resolve_initial_references IN(RString identifier  )  throw ( RInvalidName ) [virtual]
 

Implements org::omg::CORBA::ORB.

acdk::lang::Object acdkx::orb::AORB::resolve_object AServerRequestImpl req  ) 
 

virtual void acdkx::orb::AORB::run  )  [virtual]
 

run the ORB-Server.

Will not return. use ORB::start() to start server in background

Reimplemented from acdk::lang::Thread.

RString acdkx::orb::AORB::serverHost  )  [inline]
 

void acdkx::orb::AORB::setGIOPVersion int  major,
int  minor
[inline]
 

virtual void acdkx::orb::AORB::shutdown bool  wait_for_completion  )  [virtual]
 

stop reading Messages

Implements org::omg::CORBA::ORB.

virtual void acdkx::orb::AORB::start  )  [inline, virtual]
 

run the ORB server in background

Reimplemented from acdk::lang::Thread.

virtual ::org::omg::CORBA::RObject acdkx::orb::AORB::string_to_object IN(RString str  )  [virtual]
 

java standard

Implements org::omg::CORBA::ORB.

virtual bool acdkx::orb::AORB::work_pending  )  [virtual]
 

single threaded not supported

Implements org::omg::CORBA::ORB.


Member Data Documentation

::org::omg::CORBA::GIOP::Version acdkx::orb::AORB::_giopVersion [private]
 

bool acdkx::orb::AORB::_isServer [private]
 

RHashMap acdkx::orb::AORB::_objects [private]
 

key: ::acdk::lang::RObject value: RObjectKey

RHashMap acdkx::orb::AORB::_objectsIds [private]
 

key: RcharArray object_id; value: RObjectKey

int acdkx::orb::AORB::_port [private]
 

::acdk::util::RProperties acdkx::orb::AORB::_properties [private]
 

RString acdkx::orb::AORB::_serverHost [private]
 

::acdk::net::RServerSocket acdkx::orb::AORB::_serverSocket [private]
 

bool acdkx::orb::AORB::_shutdown [private]
 

acdk::lang::Object acdkx::orb::AORB::_theObject [private]
 

### test only

RAORB acdkx::orb::AORB::_theORB [static, private]
 

RThreadGroup acdkx::orb::AORB::_treadGroup [private]
 

bool acdkx::orb::AORB::ignoreDmiOverGIOP
 

don't use DMI over GIOP

bool acdkx::orb::AORB::ignoreLocal
 

always use network

 
Last modified 2005-05-08 18:34 by SYSTEM By Artefaktur, Ing. Bureau Kommer