#include <params.h>
Public Types | |
typedef ACE_Array_Map < ACE_CString, ACE_CString > | endpoints_map_type |
Public Member Functions | |
TAO_ORB_Parameters (void) | |
Constructor. | |
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. | |
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. | |
void | sock_rcvbuf_size (int) |
int | sock_sndbuf_size (void) const |
Set/Get the size to be used for a socket's send buffer. | |
void | sock_sndbuf_size (int) |
int | nodelay (void) const |
Set/Get the status of whether to use TCP_NODELAY or not. | |
void | nodelay (int) |
int | sock_keepalive (void) |
Set/Get whether we should set SO_KEEPALIVE on the socket or not. | |
void | sock_keepalive (int) |
int | sock_dontroute (void) |
Set/Get whether we should set SO_DONTROUTE on the socket or not. | |
void | sock_dontroute (int) |
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. | |
void | linger (int) |
char * | default_init_ref (void) const |
Set/Get the Init Reference of an arbitrary ObjectID. | |
void | default_init_ref (const char *default_init_ref) |
int | std_profile_components (void) const |
void | std_profile_components (int x) |
int | ace_sched_policy (void) const |
Scheduling policy. | |
void | ace_sched_policy (int x) |
long | sched_policy (void) const |
Scheduling policy flag. | |
void | sched_policy (long x) |
long | scope_policy (void) const |
Scheduling scope flag. | |
void | scope_policy (long x) |
long | thread_creation_flags (void) const |
Thread creation flags. | |
int | single_read_optimization (void) const |
Single read optimization. | |
void | single_read_optimization (int x) |
int | shared_profile (void) const |
Create shared profiles without priority. | |
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. | |
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 | prefer_ipv6_interfaces (bool p) |
bool | prefer_ipv6_interfaces (void) const |
void | connect_ipv6_only (bool p) |
bool | connect_ipv6_only (void) const |
void | use_ipv6_link_local (bool p) |
bool | use_ipv6_link_local (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 | 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 char *s) |
const char * | 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 |
ACE_CDR::ULong | max_message_size (void) const |
void | max_message_size (ACE_CDR::ULong size) |
Private Member Functions | |
int | parse_and_add_endpoints (const ACE_CString &endpoints, TAO_EndpointSet &endpoint_set) |
Private Attributes | |
endpoints_map_type | endpoints_map_ |
Map of endpoints this server is willing to accept requests on. | |
CORBA::UShort | service_port_ [TAO_NO_OF_MCAST_SERVICES] |
Port numbers of the configured services. | |
CORBA::String_var | mcast_discovery_endpoint_ |
ACE_CString | default_init_ref_ |
List of comma separated prefixes from ORBDefaultInitRef. | |
int | sock_rcvbuf_size_ |
Size to be used for a socket's receive buffer. | |
int | sock_sndbuf_size_ |
Size to be used for a socket's send buffer. | |
int | nodelay_ |
1 if we're using TCP_NODELAY and 0 otherwise. | |
int | sock_keepalive_ |
1 if we're using SO_KEEPALIVE and 0 otherwise (default 0). | |
int | sock_dontroute_ |
1 if we're using SO_DONTROUTE and 0 otherwise (default 0). | |
int | cdr_memcpy_tradeoff_ |
ACE_CDR::ULong | max_message_size_ |
Maximum GIOP message size to be sent over a given transport. | |
int | use_dotted_decimal_addresses_ |
For selecting a address notation. | |
int | cache_incoming_by_dotted_decimal_address_ |
int | linger_ |
For setting the SO_LINGER option. | |
int | std_profile_components_ |
If true then the standard OMG components are not generated. | |
int | ace_sched_policy_ |
Scheduling policy. | |
long | sched_policy_ |
Scheduling policy flag. | |
long | scope_policy_ |
Scheduling scope flag. | |
int | single_read_optimization_ |
Single read optimization. | |
int | shared_profile_ |
Shared Profile - Use the same profile for multiple endpoints. | |
int | use_parallel_connects_ |
unsigned long | parallel_connect_delay_ |
ACE_CString | pref_network_ |
Preferred network interfaces as a string. | |
bool | disable_rt_collocation_resolver_ |
Default collocation resolver. | |
bool | enforce_preferred_interfaces_ |
bool | prefer_ipv6_interfaces_ |
Prefer to connect IPv6 over IPv4 Yes or No. | |
bool | connect_ipv6_only_ |
bool | use_ipv6_link_local_ |
Include Link Local IPv6 profiles to IOR Yes or No. | |
bool | negotiate_codesets_ |
Enable the use of codeset negotiation. | |
bool | ami_collication_ |
Do we make collocated ami calls. | |
ACE_CString | protocols_hooks_name_ |
ACE_CString | stub_factory_name_ |
ACE_CString | endpoint_selector_factory_name_ |
ACE_CString | thread_lane_resources_manager_factory_name_ |
ACE_CString | poa_factory_name_ |
ACE_CString | poa_factory_directive_ |
ACE_CString | collocation_resolver_name_ |
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_ORB_Parameters::TAO_ORB_Parameters | ( | void | ) |
Constructor.
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::get_endpoint_set | ( | const ACE_CString & | lane, | |
TAO_EndpointSet & | endpoint_set | |||
) |
ACE_INLINE CORBA::UShort TAO_ORB_Parameters::service_port | ( | TAO::MCAST_SERVICEID | service_id | ) | const |
Set/Get the port of services locatable through multicast.
ACE_INLINE void TAO_ORB_Parameters::service_port | ( | TAO::MCAST_SERVICEID | service_id, | |
CORBA::UShort | port | |||
) |
ACE_INLINE const char * TAO_ORB_Parameters::mcast_discovery_endpoint | ( | void | ) | const |
Get/Set address:port for Multicast Discovery Protocol for the Naming Service.
ACE_INLINE void TAO_ORB_Parameters::mcast_discovery_endpoint | ( | const char * | mde | ) |
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int TAO_ORB_Parameters::sock_rcvbuf_size | ( | void | ) | const |
Set/Get the size to be used for a socket's receive buffer.
ACE_INLINE void TAO_ORB_Parameters::sock_rcvbuf_size | ( | int | s | ) |
ACE_INLINE int TAO_ORB_Parameters::sock_sndbuf_size | ( | void | ) | const |
Set/Get the size to be used for a socket's send buffer.
ACE_INLINE void TAO_ORB_Parameters::sock_sndbuf_size | ( | int | s | ) |
ACE_INLINE int TAO_ORB_Parameters::nodelay | ( | void | ) | const |
Set/Get the status of whether to use TCP_NODELAY or not.
ACE_INLINE void TAO_ORB_Parameters::nodelay | ( | int | x | ) |
ACE_INLINE int TAO_ORB_Parameters::sock_keepalive | ( | void | ) |
Set/Get whether we should set SO_KEEPALIVE on the socket or not.
ACE_INLINE void TAO_ORB_Parameters::sock_keepalive | ( | int | x | ) |
ACE_INLINE int TAO_ORB_Parameters::sock_dontroute | ( | void | ) |
Set/Get whether we should set SO_DONTROUTE on the socket or not.
ACE_INLINE void TAO_ORB_Parameters::sock_dontroute | ( | int | x | ) |
ACE_INLINE 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.
ACE_INLINE void TAO_ORB_Parameters::cdr_memcpy_tradeoff | ( | int | x | ) |
ACE_INLINE ACE_CDR::ULong TAO_ORB_Parameters::max_message_size | ( | void | ) | const |
Maximum size of a GIOP message before outgoing fragmentation kicks in.
ACE_INLINE void TAO_ORB_Parameters::max_message_size | ( | ACE_CDR::ULong | size | ) |
Maximum size of a GIOP message before outgoing fragmentation kicks in.
ACE_INLINE 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.
ACE_INLINE void TAO_ORB_Parameters::use_dotted_decimal_addresses | ( | int | x | ) |
ACE_INLINE 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
ACE_INLINE void TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address | ( | int | x | ) |
ACE_INLINE int TAO_ORB_Parameters::linger | ( | void | ) | const |
The ORB will turn off SO_LINGER if this is zero.
ACE_INLINE void TAO_ORB_Parameters::linger | ( | int | x | ) |
ACE_INLINE char * TAO_ORB_Parameters::default_init_ref | ( | void | ) | const |
Set/Get the Init Reference of an arbitrary ObjectID.
ACE_INLINE void TAO_ORB_Parameters::default_init_ref | ( | const char * | default_init_ref | ) |
ACE_INLINE int TAO_ORB_Parameters::std_profile_components | ( | void | ) | const |
Disable the OMG standard profile components, useful for homogenous environments.
ACE_INLINE void TAO_ORB_Parameters::std_profile_components | ( | int | x | ) |
ACE_INLINE 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.
ACE_INLINE void TAO_ORB_Parameters::ace_sched_policy | ( | int | x | ) |
ACE_INLINE 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.
ACE_INLINE void TAO_ORB_Parameters::sched_policy | ( | long | x | ) |
ACE_INLINE 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.
ACE_INLINE void TAO_ORB_Parameters::scope_policy | ( | long | x | ) |
ACE_INLINE long TAO_ORB_Parameters::thread_creation_flags | ( | void | ) | const |
Thread creation flags.
Shorthand for OR'ing together the scope_policy and sched_policy.
ACE_INLINE int TAO_ORB_Parameters::single_read_optimization | ( | void | ) | const |
Single read optimization.
ACE_INLINE void TAO_ORB_Parameters::single_read_optimization | ( | int | x | ) |
ACE_INLINE int TAO_ORB_Parameters::shared_profile | ( | void | ) | const |
Create shared profiles without priority.
ACE_INLINE void TAO_ORB_Parameters::shared_profile | ( | int | x | ) |
ACE_INLINE bool TAO_ORB_Parameters::use_parallel_connects | ( | void | ) | const |
Want to use parallel connection attempts when profiles have multiple endpoints.
ACE_INLINE void TAO_ORB_Parameters::use_parallel_connects | ( | bool | x | ) |
ACE_INLINE unsigned long TAO_ORB_Parameters::parallel_connect_delay | ( | void | ) | const |
The milliseconds delay used to stagger individual connection starts when using parallel connects.
ACE_INLINE void TAO_ORB_Parameters::parallel_connect_delay | ( | unsigned long | x | ) |
ACE_INLINE bool TAO_ORB_Parameters::disable_rt_collocation_resolver | ( | void | ) | const |
Mutators and accessors for rt_collocation_resolver.
ACE_INLINE void TAO_ORB_Parameters::disable_rt_collocation_resolver | ( | bool | x | ) |
bool TAO_ORB_Parameters::preferred_interfaces | ( | const char * | s | ) |
Accepts the list of preferred interfaces and does a simple semantic check on the string
const char * TAO_ORB_Parameters::preferred_interfaces | ( | void | ) | const |
void TAO_ORB_Parameters::enforce_pref_interfaces | ( | bool | p | ) |
bool TAO_ORB_Parameters::enforce_pref_interfaces | ( | void | ) | const |
void TAO_ORB_Parameters::prefer_ipv6_interfaces | ( | bool | p | ) |
bool TAO_ORB_Parameters::prefer_ipv6_interfaces | ( | void | ) | const |
void TAO_ORB_Parameters::connect_ipv6_only | ( | bool | p | ) |
bool TAO_ORB_Parameters::connect_ipv6_only | ( | void | ) | const |
void TAO_ORB_Parameters::use_ipv6_link_local | ( | bool | p | ) |
bool TAO_ORB_Parameters::use_ipv6_link_local | ( | void | ) | const |
ACE_INLINE void TAO_ORB_Parameters::negotiate_codesets | ( | bool | c | ) |
ACE_INLINE bool TAO_ORB_Parameters::negotiate_codesets | ( | void | ) | const |
ACE_INLINE void TAO_ORB_Parameters::ami_collication | ( | bool | opt | ) |
ACE_INLINE bool TAO_ORB_Parameters::ami_collication | ( | void | ) | const |
void TAO_ORB_Parameters::protocols_hooks_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::protocols_hooks_name | ( | void | ) | const |
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 |
void TAO_ORB_Parameters::stub_factory_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::stub_factory_name | ( | void | ) | const |
void TAO_ORB_Parameters::poa_factory_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::poa_factory_name | ( | void | ) | const |
void TAO_ORB_Parameters::poa_factory_directive | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::poa_factory_directive | ( | void | ) | const |
void TAO_ORB_Parameters::endpoint_selector_factory_name | ( | const char * | s | ) |
const char * TAO_ORB_Parameters::endpoint_selector_factory_name | ( | void | ) | const |
ACE_INLINE void TAO_ORB_Parameters::collocation_resolver_name | ( | const char * | s | ) |
ACE_INLINE const char * TAO_ORB_Parameters::collocation_resolver_name | ( | void | ) | const |
int TAO_ORB_Parameters::parse_and_add_endpoints | ( | const ACE_CString & | endpoints, | |
TAO_EndpointSet & | endpoint_set | |||
) | [private] |
Map of endpoints this server is willing to accept requests on.
CORBA::UShort TAO_ORB_Parameters::service_port_[TAO_NO_OF_MCAST_SERVICES] [private] |
Port numbers of the configured services.
Address:port for Multicast Discovery Protocol for the Naming Service.
List of comma separated prefixes from ORBDefaultInitRef.
int TAO_ORB_Parameters::sock_rcvbuf_size_ [private] |
Size to be used for a socket's receive buffer.
int TAO_ORB_Parameters::sock_sndbuf_size_ [private] |
Size to be used for a socket's send buffer.
int TAO_ORB_Parameters::nodelay_ [private] |
1 if we're using TCP_NODELAY and 0 otherwise.
int TAO_ORB_Parameters::sock_keepalive_ [private] |
1 if we're using SO_KEEPALIVE and 0 otherwise (default 0).
int TAO_ORB_Parameters::sock_dontroute_ [private] |
1 if we're using SO_DONTROUTE and 0 otherwise (default 0).
int TAO_ORB_Parameters::cdr_memcpy_tradeoff_ [private] |
Control the strategy for copying vs. appeding octet sequences in CDR streams.
Maximum GIOP message size to be sent over a given transport.
Setting a maximum message size will cause outgoing GIOP fragmentation to be enabled.
int TAO_ORB_Parameters::use_dotted_decimal_addresses_ [private] |
For selecting a address notation.
If incoming connections should be cached against IP (true) or hostname (false).
int TAO_ORB_Parameters::linger_ [private] |
For setting the SO_LINGER option.
int TAO_ORB_Parameters::std_profile_components_ [private] |
If true then the standard OMG components are not generated.
int TAO_ORB_Parameters::ace_sched_policy_ [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.
long TAO_ORB_Parameters::sched_policy_ [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.
long TAO_ORB_Parameters::scope_policy_ [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.
int TAO_ORB_Parameters::single_read_optimization_ [private] |
Single read optimization.
int TAO_ORB_Parameters::shared_profile_ [private] |
Shared Profile - Use the same profile for multiple endpoints.
int TAO_ORB_Parameters::use_parallel_connects_ [private] |
Use Parallel Connects - Try to connect to all endpoints in a shared profile at once, use the first to complete.
unsigned long TAO_ORB_Parameters::parallel_connect_delay_ [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.
ACE_CString TAO_ORB_Parameters::pref_network_ [private] |
Preferred network interfaces as a string.
bool TAO_ORB_Parameters::disable_rt_collocation_resolver_ [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.
bool TAO_ORB_Parameters::enforce_preferred_interfaces_ [private] |
bool TAO_ORB_Parameters::prefer_ipv6_interfaces_ [private] |
Prefer to connect IPv6 over IPv4 Yes or No.
bool TAO_ORB_Parameters::connect_ipv6_only_ [private] |
Only connect to (client) or listen on and accept from (server) IPv6 interfaces Yes or No.
bool TAO_ORB_Parameters::use_ipv6_link_local_ [private] |
Include Link Local IPv6 profiles to IOR Yes or No.
bool TAO_ORB_Parameters::negotiate_codesets_ [private] |
Enable the use of codeset negotiation.
bool TAO_ORB_Parameters::ami_collication_ [private] |
Do we make collocated ami calls.
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".
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".
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".
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".
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.
The service configurator directive used to load poa_factory_name_ dynamically.
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".