TAO
2.3.3
|
Parameters that are specific to the ORB. These parameters can be for the client, the server, or for both. More...
#include <params.h>
Public Types | |
typedef ACE_Array_Map< ACE_CString, ACE_CString > | endpoints_map_type |
Public Member Functions | |
TAO_ORB_Parameters (void) | |
Constructor. More... | |
int | add_endpoints (const ACE_CString &lane, const ACE_CString &endpoints) |
void | get_endpoint_set (const ACE_CString &lane, TAO_EndpointSet &endpoint_set) |
CORBA::UShort | service_port (TAO::MCAST_SERVICEID service_id) const |
Set/Get the port of services locatable through multicast. More... | |
void | service_port (TAO::MCAST_SERVICEID service_id, CORBA::UShort port) |
const char * | mcast_discovery_endpoint (void) const |
void | mcast_discovery_endpoint (const char *mde) |
int | sock_rcvbuf_size (void) const |
Set/Get the size to be used for a socket's receive buffer. More... | |
void | sock_rcvbuf_size (int) |
int | sock_sndbuf_size (void) const |
Set/Get the size to be used for a socket's send buffer. More... | |
void | sock_sndbuf_size (int) |
int | nodelay (void) const |
Set/Get the status of whether to use TCP_NODELAY or not. More... | |
void | nodelay (int) |
int | sock_keepalive (void) |
Set/Get whether we should set SO_KEEPALIVE on the socket or not. More... | |
void | sock_keepalive (int) |
int | sock_dontroute (void) |
Set/Get whether we should set SO_DONTROUTE on the socket or not. More... | |
void | sock_dontroute (int) |
int | ip_hoplimit (void) |
Set/Get the number of hops to be used for datagrams sent through socket. More... | |
void | ip_hoplimit (int) |
bool | ip_multicastloop (void) |
Set/Get whether we should set IP_MULTICAST_LOOP on the socket or not. More... | |
void | ip_multicastloop (bool) |
u_short | iiop_client_port_base (void) |
Set/Get client side port span values. More... | |
void | iiop_client_port_base (u_short) |
u_short | iiop_client_port_span (void) |
void | iiop_client_port_span (u_short) |
int | cdr_memcpy_tradeoff (void) const |
void | cdr_memcpy_tradeoff (int) |
int | use_dotted_decimal_addresses (void) const |
void | use_dotted_decimal_addresses (int) |
int | cache_incoming_by_dotted_decimal_address (void) const |
void | cache_incoming_by_dotted_decimal_address (int) |
int | linger (void) const |
The ORB will turn off SO_LINGER if this is zero. More... | |
void | linger (int) |
time_t | accept_error_delay (void) const |
void | accept_error_delay (time_t) |
char * | default_init_ref (void) const |
Set/Get the Init Reference of an arbitrary ObjectID. More... | |
void | default_init_ref (const char *default_init_ref) |
bool | std_profile_components (void) const |
void | std_profile_components (bool x) |
int | ace_sched_policy (void) const |
Scheduling policy. More... | |
void | ace_sched_policy (int x) |
long | sched_policy (void) const |
Scheduling policy flag. More... | |
void | sched_policy (long x) |
long | scope_policy (void) const |
Scheduling scope flag. More... | |
void | scope_policy (long x) |
long | thread_creation_flags (void) const |
Thread creation flags. More... | |
int | single_read_optimization (void) const |
Single read optimization. More... | |
void | single_read_optimization (int x) |
int | shared_profile (void) const |
Create shared profiles without priority. More... | |
void | shared_profile (int x) |
bool | use_parallel_connects (void) const |
void | use_parallel_connects (bool x) |
unsigned long | parallel_connect_delay (void) const |
void | parallel_connect_delay (unsigned long x) |
bool | disable_rt_collocation_resolver (void) const |
Mutators and accessors for rt_collocation_resolver. More... | |
void | disable_rt_collocation_resolver (bool) |
bool | preferred_interfaces (const char *s) |
const char * | preferred_interfaces (void) const |
void | enforce_pref_interfaces (bool p) |
bool | enforce_pref_interfaces (void) const |
void | negotiate_codesets (bool c) |
bool | negotiate_codesets (void) const |
void | ami_collication (bool opt) |
bool | ami_collication (void) const |
void | protocols_hooks_name (const char *s) |
const char * | protocols_hooks_name (void) const |
void | thread_lane_resources_manager_factory_name (const char *s) |
const char * | thread_lane_resources_manager_factory_name (void) const |
void | dynamic_thread_pool_config_name (const char *s) |
const char * | dynamic_thread_pool_config_name (void) const |
void | stub_factory_name (const char *s) |
const char * | stub_factory_name (void) const |
void | poa_factory_name (const char *s) |
const char * | poa_factory_name (void) const |
void | poa_factory_directive (const ACE_TCHAR *s) |
const ACE_TCHAR * | poa_factory_directive (void) const |
void | endpoint_selector_factory_name (const char *s) |
const char * | endpoint_selector_factory_name (void) const |
void | collocation_resolver_name (const char *s) |
const char * | collocation_resolver_name (void) const |
void | forward_invocation_on_object_not_exist (bool opt) |
bool | forward_invocation_on_object_not_exist (void) const |
void | forward_on_exception_limit (const int ef, const int limit) |
void | forward_on_exception_delay (const ACE_Time_Value &delay) |
TAO::Invocation_Retry_Params & | invocation_retry_params (void) |
const TAO::Invocation_Retry_Params & | invocation_retry_params (void) const |
void | forward_once_exception (const int ef) |
int | forward_once_exception () const |
void | allow_ziop_no_server_policies (bool opt) |
bool | allow_ziop_no_server_policies (void) const |
ACE_CDR::ULong | max_message_size (void) const |
void | max_message_size (ACE_CDR::ULong size) |
Static Public Member Functions | |
static bool | check_preferred_interfaces_string (const char *) |
Utility function called by the preferred interfaces setter. More... | |
Private Member Functions | |
int | parse_and_add_endpoints (const ACE_CString &endpoints, TAO_EndpointSet &endpoint_set) |
Parameters that are specific to the ORB. These parameters can be for the client, the server, or for both.
TAO_ORB_Parameters::TAO_ORB_Parameters | ( | void | ) |
Constructor.
time_t TAO_ORB_Parameters::accept_error_delay | ( | void | ) | const |
The amount of time desired by the user to wait to accept connections after a particular type of accept() error.
void TAO_ORB_Parameters::accept_error_delay | ( | time_t | x | ) |
int TAO_ORB_Parameters::ace_sched_policy | ( | void | ) | const |
Scheduling policy.
Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by functions like ACE_OS::thr_setprio() and ACE_Sched_Params::priority_min(). Legal values are ACE_SCHED_RR, ACE_SCHED_FIFO, and ACE_SCHED_OTHER.
void TAO_ORB_Parameters::ace_sched_policy | ( | int | x | ) |
int TAO_ORB_Parameters::add_endpoints | ( | const ACE_CString & | lane, |
const ACE_CString & | endpoints | ||
) |
Specifies the endpoints on which this server is willing to listen for requests.
void TAO_ORB_Parameters::allow_ziop_no_server_policies | ( | bool | opt | ) |
bool TAO_ORB_Parameters::allow_ziop_no_server_policies | ( | void | ) | const |
void TAO_ORB_Parameters::ami_collication | ( | bool | opt | ) |
bool TAO_ORB_Parameters::ami_collication | ( | void | ) | const |
int TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address | ( | void | ) | const |
The ORB will cache incoming connections against the dotted decimal form of the peer's address
void TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address | ( | int | x | ) |
int TAO_ORB_Parameters::cdr_memcpy_tradeoff | ( | void | ) | const |
Octet sequences are marshalled without doing any copies, we simply append a block to the CDR message block chain. When the octet sequence is small enough and there is room in the current message block it is more efficient just to copy the buffer.
void TAO_ORB_Parameters::cdr_memcpy_tradeoff | ( | int | x | ) |
|
static |
Utility function called by the preferred interfaces setter.
void TAO_ORB_Parameters::collocation_resolver_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::collocation_resolver_name | ( | void | ) | const |
char * TAO_ORB_Parameters::default_init_ref | ( | void | ) | const |
Set/Get the Init Reference of an arbitrary ObjectID.
void TAO_ORB_Parameters::default_init_ref | ( | const char * | default_init_ref | ) |
bool TAO_ORB_Parameters::disable_rt_collocation_resolver | ( | void | ) | const |
Mutators and accessors for rt_collocation_resolver.
void TAO_ORB_Parameters::disable_rt_collocation_resolver | ( | bool | x | ) |
void TAO_ORB_Parameters::dynamic_thread_pool_config_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::dynamic_thread_pool_config_name | ( | void | ) | const |
void TAO_ORB_Parameters::endpoint_selector_factory_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::endpoint_selector_factory_name | ( | void | ) | const |
void TAO_ORB_Parameters::enforce_pref_interfaces | ( | bool | p | ) |
bool TAO_ORB_Parameters::enforce_pref_interfaces | ( | void | ) | const |
void TAO_ORB_Parameters::forward_invocation_on_object_not_exist | ( | bool | opt | ) |
bool TAO_ORB_Parameters::forward_invocation_on_object_not_exist | ( | void | ) | const |
void TAO_ORB_Parameters::forward_on_exception_delay | ( | const ACE_Time_Value & | delay | ) |
void TAO_ORB_Parameters::forward_on_exception_limit | ( | const int | ef, |
const int | limit | ||
) |
void TAO_ORB_Parameters::forward_once_exception | ( | const int | ef | ) |
int TAO_ORB_Parameters::forward_once_exception | ( | void | ) | const |
void TAO_ORB_Parameters::get_endpoint_set | ( | const ACE_CString & | lane, |
TAO_EndpointSet & | endpoint_set | ||
) |
u_short TAO_ORB_Parameters::iiop_client_port_base | ( | void | ) |
Set/Get client side port span values.
void TAO_ORB_Parameters::iiop_client_port_base | ( | u_short | b | ) |
u_short TAO_ORB_Parameters::iiop_client_port_span | ( | void | ) |
void TAO_ORB_Parameters::iiop_client_port_span | ( | u_short | s | ) |
TAO::Invocation_Retry_Params & TAO_ORB_Parameters::invocation_retry_params | ( | void | ) |
const TAO::Invocation_Retry_Params & TAO_ORB_Parameters::invocation_retry_params | ( | void | ) | const |
int TAO_ORB_Parameters::ip_hoplimit | ( | void | ) |
Set/Get the number of hops to be used for datagrams sent through socket.
void TAO_ORB_Parameters::ip_hoplimit | ( | int | x | ) |
bool TAO_ORB_Parameters::ip_multicastloop | ( | void | ) |
Set/Get whether we should set IP_MULTICAST_LOOP on the socket or not.
void TAO_ORB_Parameters::ip_multicastloop | ( | bool | x | ) |
int TAO_ORB_Parameters::linger | ( | void | ) | const |
The ORB will turn off SO_LINGER if this is zero.
void TAO_ORB_Parameters::linger | ( | int | x | ) |
ACE_CDR::ULong TAO_ORB_Parameters::max_message_size | ( | void | ) | const |
Maximum size of a GIOP message before outgoing fragmentation kicks in.
void TAO_ORB_Parameters::max_message_size | ( | ACE_CDR::ULong | size | ) |
Maximum size of a GIOP message before outgoing fragmentation kicks in.
const char * TAO_ORB_Parameters::mcast_discovery_endpoint | ( | void | ) | const |
Get/Set address:port for Multicast Discovery Protocol for the Naming Service.
void TAO_ORB_Parameters::mcast_discovery_endpoint | ( | const char * | mde | ) |
void TAO_ORB_Parameters::negotiate_codesets | ( | bool | c | ) |
bool TAO_ORB_Parameters::negotiate_codesets | ( | void | ) | const |
int TAO_ORB_Parameters::nodelay | ( | void | ) | const |
Set/Get the status of whether to use TCP_NODELAY or not.
void TAO_ORB_Parameters::nodelay | ( | int | x | ) |
unsigned long TAO_ORB_Parameters::parallel_connect_delay | ( | void | ) | const |
The milliseconds delay used to stagger individual connection starts when using parallel connects.
void TAO_ORB_Parameters::parallel_connect_delay | ( | unsigned long | x | ) |
|
private |
Each "endpoint" is of the form:
protocol://V.v,...,W.w/
or:
protocol://addr1,addr2,...,addrN/
where "V.v" and "W.w" are optional versions.
Multiple sets of endpoints may be separated by a semi-colon `;'. For example:
iiop://space:2001,odyssey:2010;uiop://foo,bar
All preconnect or endpoint strings should be of the above form(s).
void TAO_ORB_Parameters::poa_factory_directive | ( | const ACE_TCHAR * | s | ) |
const ACE_TCHAR * TAO_ORB_Parameters::poa_factory_directive | ( | void | ) | const |
void TAO_ORB_Parameters::poa_factory_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::poa_factory_name | ( | void | ) | const |
bool TAO_ORB_Parameters::preferred_interfaces | ( | const char * | s | ) |
Accepts the list of preferred interfaces and does a simple semantic check on the string before setting. Also the getter.
const char * TAO_ORB_Parameters::preferred_interfaces | ( | void | ) | const |
void TAO_ORB_Parameters::protocols_hooks_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::protocols_hooks_name | ( | void | ) | const |
long TAO_ORB_Parameters::sched_policy | ( | void | ) | const |
Scheduling policy flag.
Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCHED_RR, THR_SCHED_FIFO, and THR_SCHED_DEFAULT.
void TAO_ORB_Parameters::sched_policy | ( | long | x | ) |
long TAO_ORB_Parameters::scope_policy | ( | void | ) | const |
Scheduling scope flag.
Scheduling policy specified by the user through the -ORBScopePolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCOPE_SYSTEM and THR_SCOPE_PROCESS.
void TAO_ORB_Parameters::scope_policy | ( | long | x | ) |
CORBA::UShort TAO_ORB_Parameters::service_port | ( | TAO::MCAST_SERVICEID | service_id | ) | const |
Set/Get the port of services locatable through multicast.
void TAO_ORB_Parameters::service_port | ( | TAO::MCAST_SERVICEID | service_id, |
CORBA::UShort | port | ||
) |
int TAO_ORB_Parameters::shared_profile | ( | void | ) | const |
Create shared profiles without priority.
void TAO_ORB_Parameters::shared_profile | ( | int | x | ) |
int TAO_ORB_Parameters::single_read_optimization | ( | void | ) | const |
Single read optimization.
void TAO_ORB_Parameters::single_read_optimization | ( | int | x | ) |
int TAO_ORB_Parameters::sock_dontroute | ( | void | ) |
Set/Get whether we should set SO_DONTROUTE on the socket or not.
void TAO_ORB_Parameters::sock_dontroute | ( | int | x | ) |
int TAO_ORB_Parameters::sock_keepalive | ( | void | ) |
Set/Get whether we should set SO_KEEPALIVE on the socket or not.
void TAO_ORB_Parameters::sock_keepalive | ( | int | x | ) |
int TAO_ORB_Parameters::sock_rcvbuf_size | ( | void | ) | const |
Set/Get the size to be used for a socket's receive buffer.
void TAO_ORB_Parameters::sock_rcvbuf_size | ( | int | s | ) |
int TAO_ORB_Parameters::sock_sndbuf_size | ( | void | ) | const |
Set/Get the size to be used for a socket's send buffer.
void TAO_ORB_Parameters::sock_sndbuf_size | ( | int | s | ) |
bool TAO_ORB_Parameters::std_profile_components | ( | void | ) | const |
Disable the OMG standard profile components, useful for homogenous environments.
void TAO_ORB_Parameters::std_profile_components | ( | bool | x | ) |
void TAO_ORB_Parameters::stub_factory_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::stub_factory_name | ( | void | ) | const |
long TAO_ORB_Parameters::thread_creation_flags | ( | void | ) | const |
Thread creation flags.
Shorthand for OR'ing together the scope_policy and sched_policy.
void TAO_ORB_Parameters::thread_lane_resources_manager_factory_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::thread_lane_resources_manager_factory_name | ( | void | ) | const |
int TAO_ORB_Parameters::use_dotted_decimal_addresses | ( | void | ) | const |
The ORB will use the dotted decimal notation for addresses. By default we use the full ascii names.
void TAO_ORB_Parameters::use_dotted_decimal_addresses | ( | int | x | ) |
bool TAO_ORB_Parameters::use_parallel_connects | ( | void | ) | const |
Want to use parallel connection attempts when profiles have multiple endpoints.
void TAO_ORB_Parameters::use_parallel_connects | ( | bool | x | ) |
|
private |
For setting the accept retry delay.
|
private |
Scheduling policy.
Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by functions like ACE_OS::thr_setprio() and ACE_Sched_Params::priority_min(). Legal values are ACE_SCHED_RR, ACE_SCHED_FIFO, and ACE_SCHED_OTHER.
|
private |
|
private |
Do we make collocated ami calls.
|
private |
If incoming connections should be cached against IP (true) or hostname (false).
|
private |
Control the strategy for copying vs. appending octet sequences in CDR streams.
|
private |
Name of the collocation resolver that needs to be instantiated. The default value is "Default_Collocation_Resolver". If TAO_RTCORBA is linked, the set_collocation_resolver will be called to set the value to be "RT_Collocation_Resolver".
|
private |
List of comma separated prefixes from ORBDefaultInitRef.
|
private |
Default collocation resolver.
The vanilla ORB has only one collocation resolver. But if the RTORB is in place, the RTORB can get in a new collocation resolver. There are some applications that would like to use the default collocation resolver with the RTORB. This boolean is the value of the option that the application passes in to enable/disable the use of RT collocation resolver with the RTORB. The default value is false to indicate that the RT_Collocation_Resolver will be loaded if the RTORB is used.
|
private |
Name of the non-RT dynamic thread pool configuration set to load. This is only used if the Dynamic_TP library is linked. Default is an empty string.
|
private |
Name of the endpoint selector factory that needs to be instantiated. The default value is "Default_Endpoint_Selector_Factory". If TAO_RTCORBA is linked, the set_endpoint_selector_factory will be called to set the value to be "RT_Endpoint_Selector_Factory".
|
private |
Map of endpoints this server is willing to accept requests on.
|
private |
|
private |
Do we need forward invocation to next avaiable profile upon OBJECT_NOT_EXIST exception?
|
private |
The exceptions upon which the requests will be forwarded once. This is retained for backward compatibility of behavior.
|
private |
define a range for local ports to use with IIOP connections default base 0 to use ephemeral port. Span will be 0 if base is 0.
|
private |
|
private |
|
private |
Number of hops to be used for datagrams sent through socket.
|
private |
1 if we're using IP_MULTICAST_LOOP and 0 otherwise.
|
private |
For setting the SO_LINGER option.
|
private |
|
private |
Address:port for Multicast Discovery Protocol for the Naming Service.
|
private |
Enable the use of codeset negotiation.
|
private |
1 if we're using TCP_NODELAY and 0 otherwise.
|
private |
When using parallel connects, this delay is used to stagger connection attempts. This gives a trade-off between opening more potential connections than necessary vs increasing the potential time before a good connection is discovered. Time is expressed in milliseconds.
|
private |
The service configurator directive used to load poa_factory_name_ dynamically.
|
private |
Name of the service object used to create the RootPOA. The default value is "TAO_POA". If TAO_RTCORBA is loaded, this will be changed to TAO_RT_POA so that a POA equipped with realtime extensions will be returned.
|
private |
Preferred network interfaces as a string.
|
private |
Name of the protocols_hooks that needs to be instantiated. The default value is "Protocols_Hooks". If RTCORBA option is set, its value will be set to be "RT_Protocols_Hooks".
|
private |
Scheduling policy flag.
Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCHED_RR, THR_SCHED_FIFO, and THR_SCHED_DEFAULT.
|
private |
Scheduling scope flag.
Scheduling policy specified by the user through the -ORBScopePolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCOPE_SYSTEM and THR_SCOPE_PROCESS.
|
private |
Port numbers of the configured services.
|
private |
Shared Profile - Use the same profile for multiple endpoints.
|
private |
Single read optimization.
|
private |
1 if we're using SO_DONTROUTE and 0 otherwise (default 0).
|
private |
1 if we're using SO_KEEPALIVE and 0 otherwise (default 0).
|
private |
Size to be used for a socket's receive buffer.
|
private |
Size to be used for a socket's send buffer.
|
private |
If true then the standard OMG components are not generated.
|
private |
Name of the stub factory that needs to be instantiated. The default value is "Default_Stub_Factory". If TAO_RTCORBA is linked, the set_stub_factory will be called to set the value to be "RT_Stub_Factory".
|
private |
Name of the thread lane resources manager that needs to be instantiated. The default value is "Default_Thread_Lane_Resources_Manager_Factory". If TAO_RTCORBA is linked, the set_thread_lane_resources_manager will be called to set the value to be "RT_Thread_Lane_Resources_Manager_Factory".
|
private |
For selecting a address notation.
|
private |
Use Parallel Connects - Try to connect to all endpoints in a shared profile at once, use the first to complete.