ORBTools man page

ORBTools —

Synopsis

Static Public Member Functions

static bool init (int argc, char **argv)

static bool init (int argc, char **argv, unsigned int tracelevel, unsigned int port=0)

static bool init ()

static bool registerServant (const char *contextName, const char *contextKind, const char *name, const char *kind, CORBA::Object *objref)

static bool registerServant (const char *name, const char *kind, CORBA::Object *objref)

static bool activateServant (PortableServer::ServantBase *object)

static bool activatePOA ()

static bool unregisterServant (const char *contextName, const char *contextKind, const char *name, const char *kind)

static bool unregisterServant (const char *name, const char *kind)

static bool findServant (const char *contextName, const char *contextKind, const char *name, const char *kind, CORBA::Object *&objref)

static bool findServant (const char *name, const char *kind, CORBA::Object *&objref)

static bool listen (char stopLowercase, char stopUppercase)

static bool kill ()

Static Public Attributes

static CORBA::ORB_var orb

static PortableServer::POA_var poa

Member Function Documentation

static bool ORBTools::activatePOA () [static]

Activate the POA (Portable Object Adaptor). After this, all servants registered are accessible

Returns:

true if the operation succeed

static bool ORBTools::activateServant (PortableServer::ServantBase * object) [static]

Activate a servant. After this, the IOR of the servant is known by the POA.

Parameters:

object The implementation of a servant

Returns:

true if the operation succeed

static bool ORBTools::findServant (const char * contextName, const char * contextKind, const char * name, const char * kind, CORBA::Object *& objref) [static]

Find a servant by asking the Namming Service with a specific context and name.

Parameters:

contextName Name of the context
contextKind Kind of the context (extra information)
name Name of the servant
kind Kind of the servant (extra information)
objref The new servant found (check the return value to be sure that the reference is correct)

Returns:

true if the operation succeed

static bool ORBTools::findServant (const char * name, const char * kind, CORBA::Object *& objref) [static]

Find a servant by asking the Namming Service with the default context and name.

Parameters:

name Name of the servant
kind Kind of the servant (extra information)
objref The new servant found (check the return value to be sure that the reference is correct)

Returns:

true if the operation succeed

static bool ORBTools::init (int argc, char ** argv) [static]

Initialize the CORBA ORB. See CORBA documentation for all possibles parameters.

Parameters:

argc Number of parameters to pass to the ORB
argv Array of parameters to pass to the ORB

Returns:

true if the operation succeed

static bool ORBTools::init (int argc, char ** argv, unsigned int tracelevel, unsigned int port = 0) [static]

Initialize the CORBA ORB.

Parameters:

argc Number of parameters to pass to the ORB
argv Array of parameters to pass to the ORB
tracelevel The tracelevel of the ORB (from 0 to 50)
port the port to use for listenning servants (0 = default random)

Returns:

true if the operation succeed

static bool ORBTools::init () [static]

Initialize the CORBA ORB. None argument is set, usefull for tests

Returns:

true if the operation succeed

static bool ORBTools::kill () [static]

Shutdown and destroy the ORB

Returns:

true if the operation succeed

static bool ORBTools::listen (char stopLowercase, char stopUppercase) [static]

Make the thread to listen for a incomming connection to a servant. This function will return if the user enters a specific key.

Parameters:

stopLowercase character to hit for stopping the listen function
stopUppercase character to hit for stopping the listen function

Returns:

true if the operation succeed

static bool ORBTools::registerServant (const char * contextName, const char * contextKind, const char * name, const char * kind, CORBA::Object * objref) [static]

Register a servant to the Namming Service within a specific context and name. Do not activate the servant.

Parameters:

contextName Name of the new context
contextKind Kind of the new context (extra information)
name Name of the servant
kind Kind of the servant (extra information)
objref The implementation of a servant (result of the _this() function)

Returns:

true if the operation succeed

static bool ORBTools::registerServant (const char * name, const char * kind, CORBA::Object * objref) [static]

Register a servant to the Namming Service within the default context and with a specific name. Do not activate the servant.

Parameters:

name Name of the servant
kind Kind of the servant (extra information)
objref The implementation of a servant (result of the _this() function)

Returns:

true if the operation succeed

static bool ORBTools::unregisterServant (const char * contextName, const char * contextKind, const char * name, const char * kind) [static]

Unregister a servant to the Namming Service within a specific context and name.

Parameters:

contextName Name of the context
contextKind Kind of the context (extra information)
name Name of the servant
kind Kind of the servant (extra information)

Returns:

true if the operation succeed

static bool ORBTools::unregisterServant (const char * name, const char * kind) [static]

Unregister a servant to the Namming Service within the default context and with a specific name.

Parameters:

name Name of the servant
kind Kind of the servant (extra information)

Returns:

true if the operation succeed

Author

Generated automatically by Doxygen for LogService from the source code.

Info

Wed Feb 3 2016 LogService