#include <loggingHelper.h>
List of all members.
Static Public Member Functions |
static CosNaming::NamingContext_ptr | resolveNameService (CORBA::ORB_ptr orb, int retries=3, unsigned int secTimeout=0) |
static CosNaming::NamingContext_ptr | resolveNameService (CORBA::ORB_ptr orb, const ACE_TCHAR *reference, int retries=3, unsigned int secTimeout=0) |
static void | terminateResolving (bool terminate=true) |
Static Private Attributes |
static bool | m_terminate |
Detailed Description
LoggingHelper class is a class helping to handle commonly used operations.
- Author:
- Matej Sekoranja, Jozef Stefan Institute, Slovenia
- Version:
- "@(#) $Id: loggingHelper.h,v 1.36 2003/10/15 20:17:26 dfugate Exp $"
Member Function Documentation
static CosNaming::NamingContext_ptr LoggingHelper::resolveNameService |
( |
CORBA::ORB_ptr |
orb, |
|
|
int |
retries = 3 , |
|
|
unsigned int |
secTimeout = 0 | |
|
) |
| | [static] |
resolveNameService method is a method helping to resolve CORBA NameService's reference. The NameService reference is defined by the first valid of the following options: # Command line option -ORBInitRef NameService=<corbaloc reference>=""> (e.g. corbaloc::te1.hq.eso.org:xxxx) using CORBA::ORB::resolve_initial_references("NameService"), ORB has to be already initialized with the command line # Environment variable NAMESERVICE_REFERENCE # corbaloc::<hostname>:xxxx/NameService
- Parameters:
-
| orb | CORBA ORB |
| retries | number of retries resolving NameService reference, <= 0 means infinite |
| secTimeout | timeout expressed in seconds, == 0 means inifinite (dt between retries is 3secs) |
- Returns:
- CORBA reference to the NameService's root CosNaming::NamingContext
static CosNaming::NamingContext_ptr LoggingHelper::resolveNameService |
( |
CORBA::ORB_ptr |
orb, |
|
|
const ACE_TCHAR * |
reference, |
|
|
int |
retries = 3 , |
|
|
unsigned int |
secTimeout = 0 | |
|
) |
| | [static] |
resolveNameService method resolve given stringified CORBA reference to the NameService.
- Parameters:
-
| orb | CORBA ORB |
| reference | stringified CORBA reference to the NameService |
| retries | number of retries resolving NameService reference, <= 0 means infinite |
| secTimeout | timeout expressed in seconds, == 0 means inifinite (dt between retries is 3secs) |
- Returns:
- CORBA reference to the NameService's root CosNaming::NamingContext or CosNaming::NamingContext::_nil() if unable to resolve NameService reference
static void LoggingHelper::terminateResolving |
( |
bool |
terminate = true |
) |
[static] |
Terminates all resolving processes
- Parameters:
-
| terminate | true is all resolving processes are to be cancelled (default), false to set termiante flag to false |
Member Data Documentation
The documentation for this class was generated from the following file: