TAO_Internal.cpp File Reference

#include "tao/TAO_Internal.h"
#include "tao/TAO_Singleton.h"
#include "tao/default_server.h"
#include "tao/default_client.h"
#include "tao/default_resource.h"
#include "tao/IIOP_Factory.h"
#include "tao/MCAST_Parser.h"
#include "tao/CORBANAME_Parser.h"
#include "tao/CORBALOC_Parser.h"
#include "tao/FILE_Parser.h"
#include "tao/DLL_Parser.h"
#include "tao/ORB_Core.h"
#include "tao/Adapter_Factory.h"
#include "tao/Default_Stub_Factory.h"
#include "tao/Default_Endpoint_Selector_Factory.h"
#include "tao/Default_Protocols_Hooks.h"
#include "tao/Default_Thread_Lane_Resources_Manager.h"
#include "tao/Default_Collocation_Resolver.h"
#include "tao/Codeset_Manager_Factory_Base.h"
#include "tao/Codeset_Manager.h"
#include "tao/debug.h"
#include "tao/StringSeqC.h"
#include "ace/Dynamic_Service.h"
#include "ace/Arg_Shifter.h"
#include "ace/Argv_Type_Converter.h"
#include "ace/Env_Value_T.h"
#include "ace/ACE.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Static_Object_Lock.h"

Include dependency graph for TAO_Internal.cpp:


Namespaces

namespace  TAO_END_VERSIONED_NAMESPACE_DECL

Classes

class  TAO_Ubergestalt_Ready_Condition

Defines

#define TAO_DEFAULT_RESOURCE_FACTORY_ARGS   0
#define TAO_DEFAULT_SERVER_STRATEGY_FACTORY_ARGS   0
#define TAO_DEFAULT_CLIENT_STRATEGY_FACTORY_ARGS   0

Functions

int parse_global_args_i (int &argc, char **argv, CORBA::StringSeq &svc_config_argv, bool apply_values)
 Modifies the argc to reflect any arguments it has "consumed".
int parse_svcconf_args_i (int &argc, char **argv, CORBA::StringSeq &svc_config_argv)
 Modifies the argc to reflect any arguments it has "consumed".
void register_global_services_i (ACE_Service_Gestalt *pcfg)
 registers all process-wide (global) services, available to all ORBs
void register_additional_services_i (ACE_Service_Gestalt *pcfg)
int parse_private_args_i (int &argc, char **argv, CORBA::StringSeq &svc_config_argv, bool &skip_service_config_open)
 Modifies the argc to reflect any arguments it has "consumed".
int open_private_services_i (ACE_Service_Gestalt *pcfg, int &argc, char **argv, bool skip_service_config_open=false, bool ignore_default_svc_conf_file=false)
 Open services, belonging to the gestalt instance.
int TAO::ORB::open_services (ACE_Service_Gestalt *pcfg, int &argc, ACE_TCHAR **argv)
int TAO::ORB::close_services (ACE_Service_Gestalt *pcfg)
void TAO::ORB::default_svc_conf_entries (char const *rf_args, char const *ssf_args, char const *csf_args)
int TAO_END_VERSIONED_NAMESPACE_DECL::open_private_services_i (ACE_Service_Gestalt *pcfg, int &argc, ACE_TCHAR **argv, bool skip_service_config_open, bool ignore_default_svc_conf_file)
 Open services, belonging to the gestalt instance.
void TAO_END_VERSIONED_NAMESPACE_DECL::register_global_services_i (ACE_Service_Gestalt *pcfg)
 registers all process-wide (global) services, available to all ORBs
void TAO_END_VERSIONED_NAMESPACE_DECL::register_additional_services_i (ACE_Service_Gestalt *pcfg)
int TAO_END_VERSIONED_NAMESPACE_DECL::parse_svcconf_args_i (int &argc, char **argv, CORBA::StringSeq &svc_config_argv)
 Modifies the argc to reflect any arguments it has "consumed".
int TAO_END_VERSIONED_NAMESPACE_DECL::parse_private_args_i (int &argc, char **argv, CORBA::StringSeq &svc_config_argv, bool &skip_service_config_open)
 Modifies the argc to reflect any arguments it has "consumed".
int TAO_END_VERSIONED_NAMESPACE_DECL::parse_global_args_i (int &argc, char **argv, CORBA::StringSeq &svc_config_argv, bool apply_values)
 Modifies the argc to reflect any arguments it has "consumed".

Variables

long service_open_count = 0
bool is_ubergestalt_ready = false
char const * resource_factory_args
char const * server_strategy_factory_args
char const * client_strategy_factory_args
bool negotiate_codesets = true

Define Documentation

#define TAO_DEFAULT_CLIENT_STRATEGY_FACTORY_ARGS   0

#define TAO_DEFAULT_RESOURCE_FACTORY_ARGS   0

#define TAO_DEFAULT_SERVER_STRATEGY_FACTORY_ARGS   0


Function Documentation

int @7::open_private_services_i ( ACE_Service_Gestalt pcfg,
int &  argc,
char **  argv,
bool  skip_service_config_open = false,
bool  ignore_default_svc_conf_file = false 
) [static]

Open services, belonging to the gestalt instance.

Initialize ORB-local (private) ACE Service Configurator repository.

Returns:
0 if successful, -1 with errno set if failure.

int @7::parse_global_args_i ( int &  argc,
char **  argv,
CORBA::StringSeq svc_config_argv,
bool  apply_values 
) [static]

Modifies the argc to reflect any arguments it has "consumed".

Parses the supplied command-line arguments to extract any that apply to the process (globally)

When multiple ORBs are being configured, the global options are only processed for the first ORB loaded. However subsequent ORBs may be supplied with some of these options, so they need to be eliminated as though they were processed. For this reason, this function is called for every ORB, but only the first call sets apply_values to true

int @7::parse_private_args_i ( int &  argc,
char **  argv,
CORBA::StringSeq svc_config_argv,
bool &  skip_service_config_open 
) [static]

Modifies the argc to reflect any arguments it has "consumed".

Parses the supplied command-line arguments to extract any instance-specific ones.

int @7::parse_svcconf_args_i ( int &  argc,
char **  argv,
CORBA::StringSeq svc_config_argv 
) [static]

Modifies the argc to reflect any arguments it has "consumed".

Parses the supplied command-line arguments to extract any that specify a Service Configurator file (-ORBSvcConf). This is done separately, because depending on the context, the configuration file may apply to the process-wide service repository, or to the orb-specific (private) one.

void @7::register_additional_services_i ( ACE_Service_Gestalt pcfg  )  [static]

void @7::register_global_services_i ( ACE_Service_Gestalt pcfg  )  [static]

registers all process-wide (global) services, available to all ORBs

Initialize the ACE Service Configurator with the process-global services (available to any ORB).

Returns:
0 if successful, -1 with errno set if failure.
Note:
You can provide your program a set of default `svc.conf' entries by setting ignore_default_svc_conf_file to non-zero and use default_svc_conf_entries() before calling open_global_services(). In addition, you can skip_service_config_open altogether, which used to be important when the ORB is linked in via the ACE_Service_Config, since the ACE_Service_Config was non-reentrant. However, the ACE_Service_Config is now reentrant meaning that it is really no longer necessary to do so.


Variable Documentation

char const* client_strategy_factory_args [static]

Initial value:

bool is_ubergestalt_ready = false [static]

Part of a condition variable, which helps to ensure non-default ORBs can not proceed with their initialization, until the globaly required services have been instantiated by the default ORB. Usually, the first ORB to be created is designated the default ORB (reference the CORBA spec)

bool negotiate_codesets = true [static]

char const* resource_factory_args [static]

Initial value:

char const* server_strategy_factory_args [static]

Initial value:

long service_open_count = 0 [static]

Number of times open_services() has been called. Incremented by open_global_services_i(), and decremented by close_services().

Note:
In/decrement operations are atomic.


Generated on Sun Jul 9 09:43:00 2006 for TAO by  doxygen 1.4.7-1