
This class initialises and read the configurations required in a corba server application. It also proivdes common functionalities required by the corba application servers.
Definition at line 75 of file corbacontext.h.
| OSB_CORBA::CorbaContext::CorbaContext | ( | ) | [inline] |
Default constructor.
Definition at line 79 of file corbacontext.h.
References logger_, and OSB_LIB::Log::setInstance().
| void OSB_CORBA::CorbaContext::checkNlsLang | ( | ) |
Check if NLS_LANG is supported.
| void OSB_CORBA::CorbaContext::closeLog | ( | ) |
Close the log file.
| int OSB_CORBA::CorbaContext::handleArgs | ( | int | argc, | |
| char ** | argv | |||
| ) |
Handle command line arguments.
| void OSB_CORBA::CorbaContext::initialise | ( | OSB_DB::Session & | session | ) |
Initialise context from database.
The function initialises the corba server with configurations from the database.
| session | Database session to use. |
| std::string OSB_CORBA::CorbaContext::logPath | ( | ) | const |
Get path and name of log file.
| bool OSB_CORBA::CorbaContext::openLog | ( | const std::string & | app, | |
| const std::string & | dir | |||
| ) |
Open the log file.
| void OSB_CORBA::CorbaContext::printHeader | ( | const std::string & | tag | ) |
Print 1st message.
| tag | CVS tag name. |
| void OSB_CORBA::CorbaContext::printNamingServiceInfo | ( | ) |
Print hostname and port number of naming service.
| void OSB_CORBA::CorbaContext::printTrailer | ( | ) |
Print last message.
| void OSB_CORBA::CorbaContext::printUsage | ( | ) |
Print help message.
| long OSB_CORBA::CorbaContext::readConfig | ( | OSB_DB::Session & | session, | |
| std::ostream & | strm | |||
| ) | [private] |
Read configuration from database.
The function reads configurations for corba server from the database.
| session | Database session to use. | |
| strm | output stream for messages. |
| std::string OSB_CORBA::CorbaContext::appName_ |
| OSB_APP::FileLockLog OSB_CORBA::CorbaContext::logger_ |
Logging interface to use.
Definition at line 108 of file corbacontext.h.
Referenced by CorbaContext().
1.4.7