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. | |
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 | ip_hoplimit (void) |
Set/Get the number of hops to be used for datagrams sent through socket. | |
void | ip_hoplimit (int) |
bool | ip_multicastloop (void) |
Set/Get whether we should set IP_MULTICAST_LOOP on the socket or not. | |
void | ip_multicastloop (bool) |
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) |
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. | |
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. | |
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 | 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 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_once_exception (const int) |
int | forward_once_exception () 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 | ip_hoplimit_ |
Number of hops to be used for datagrams sent through socket. | |
bool | ip_multicastloop_ |
1 if we're using IP_MULTICAST_LOOP and 0 otherwise. | |
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. | |
time_t | accept_error_delay_ |
For setting the accept retry delay. | |
bool | 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 | 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_TString | poa_factory_directive_ |
bool | forward_invocation_on_object_not_exist_ |
int | forward_once_exception_ |
ACE_CString | collocation_resolver_name_ |
Parameters that are specific to the ORB. These parameters can be for the client, the server, or for both.
Definition at line 51 of file params.h.
TAO_ORB_Parameters::TAO_ORB_Parameters | ( | void | ) |
Constructor.
Definition at line 20 of file params.cpp.
: endpoints_map_ (10) , mcast_discovery_endpoint_ () , default_init_ref_ (TAO_DEFAULT_INIT_REFERENCE_INITIALIZER) , sock_rcvbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ) , sock_sndbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ) , nodelay_ (1) , sock_keepalive_ (0) , sock_dontroute_ (0) , ip_hoplimit_ (-1) , ip_multicastloop_ (true) , cdr_memcpy_tradeoff_ (ACE_DEFAULT_CDR_MEMCPY_TRADEOFF) , max_message_size_ (0) // Disable outgoing GIOP fragments by default , use_dotted_decimal_addresses_ (0) , cache_incoming_by_dotted_decimal_address_ (0) , linger_ (-1) , accept_error_delay_ (0) , std_profile_components_ (1) , ace_sched_policy_ (ACE_SCHED_OTHER) , sched_policy_ (THR_SCHED_DEFAULT) , scope_policy_ (THR_SCOPE_PROCESS) , single_read_optimization_ (1) , shared_profile_ (0) , use_parallel_connects_ (false) , parallel_connect_delay_ (0) , pref_network_ () , disable_rt_collocation_resolver_ (false) , enforce_preferred_interfaces_ (false) #if defined (ACE_HAS_IPV6) , prefer_ipv6_interfaces_ (false) , connect_ipv6_only_ (false) , use_ipv6_link_local_ (false) #endif /* ACE_HAS_IPV6 */ , negotiate_codesets_ (true) , ami_collication_ (true) , protocols_hooks_name_ ("Protocols_Hooks") , stub_factory_name_ ("Default_Stub_Factory") , endpoint_selector_factory_name_ ("Default_Endpoint_Selector_Factory") , thread_lane_resources_manager_factory_name_ ("Default_Thread_Lane_Resources_Manager_Factory") , poa_factory_name_ ("TAO_Object_Adapter_Factory") , poa_factory_directive_ (ACE_DYNAMIC_SERVICE_DIRECTIVE("TAO_Object_Adapter_Factory", "TAO_PortableServer", "_make_TAO_Object_Adapter_Factory", "")) , forward_invocation_on_object_not_exist_ (false) , forward_once_exception_ (TAO::FOE_NON) , collocation_resolver_name_ ("Default_Collocation_Resolver") { for (int i = 0; i != TAO_NO_OF_MCAST_SERVICES; ++i) { this->service_port_[i] = 0; } }
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.
Definition at line 93 of file params.inl.
{ return this->accept_error_delay_; }
void TAO_ORB_Parameters::accept_error_delay | ( | time_t | x | ) |
Definition at line 99 of file params.inl.
{ this->accept_error_delay_ = 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.
Definition at line 215 of file params.inl.
{ return this->ace_sched_policy_; }
void TAO_ORB_Parameters::ace_sched_policy | ( | int | x | ) |
Definition at line 221 of file params.inl.
{ this->ace_sched_policy_ = 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.
Definition at line 97 of file params.cpp.
{ TAO_EndpointSet endpoint_set; // Parse the additional endpoints. int const result = this->parse_and_add_endpoints (additional_endpoints, endpoint_set); // Parse failure. if (result != 0) return result; // Look for the lane in the endpoints map. // // Return reference to endpoints string corresponding to lane // string. If none, a default constructed string is inserted into // the map and returned. ACE_CString & existing_endpoints = this->endpoints_map_[lane]; // Create the resulting endpoints string. if (existing_endpoints.length () != 0) { existing_endpoints += ";"; } existing_endpoints += additional_endpoints; return 0; }
void TAO_ORB_Parameters::ami_collication | ( | bool | opt | ) |
Definition at line 338 of file params.inl.
{ this->ami_collication_ = x; }
bool TAO_ORB_Parameters::ami_collication | ( | void | ) | const |
Definition at line 332 of file params.inl.
{ return this->ami_collication_; }
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
Definition at line 68 of file params.inl.
{ return this->cache_incoming_by_dotted_decimal_address_; }
void TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address | ( | int | x | ) |
Definition at line 74 of file params.inl.
{ this->cache_incoming_by_dotted_decimal_address_ = 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.
Definition at line 32 of file params.inl.
{ return this->cdr_memcpy_tradeoff_; }
void TAO_ORB_Parameters::cdr_memcpy_tradeoff | ( | int | x | ) |
Definition at line 38 of file params.inl.
{ this->cdr_memcpy_tradeoff_ = x; }
void TAO_ORB_Parameters::collocation_resolver_name | ( | const char * | s | ) |
Definition at line 344 of file params.inl.
{ this->collocation_resolver_name_ = s; }
const char * TAO_ORB_Parameters::collocation_resolver_name | ( | void | ) | const |
Definition at line 350 of file params.inl.
{ return this->collocation_resolver_name_.c_str (); }
char * TAO_ORB_Parameters::default_init_ref | ( | void | ) | const |
Set/Get the Init Reference of an arbitrary ObjectID.
Definition at line 137 of file params.inl.
{ return CORBA::string_dup (this->default_init_ref_.c_str ()); }
void TAO_ORB_Parameters::default_init_ref | ( | const char * | default_init_ref | ) |
Definition at line 131 of file params.inl.
{ this->default_init_ref_ = default_init_ref; }
bool TAO_ORB_Parameters::disable_rt_collocation_resolver | ( | void | ) | const |
Mutators and accessors for rt_collocation_resolver.
Definition at line 307 of file params.inl.
{ return this->disable_rt_collocation_resolver_; }
void TAO_ORB_Parameters::disable_rt_collocation_resolver | ( | bool | x | ) |
Definition at line 313 of file params.inl.
{ this->disable_rt_collocation_resolver_ = x; }
const char * TAO_ORB_Parameters::endpoint_selector_factory_name | ( | void | ) | const |
Definition at line 407 of file params.cpp.
{ return this->endpoint_selector_factory_name_.c_str (); }
void TAO_ORB_Parameters::endpoint_selector_factory_name | ( | const char * | s | ) |
Definition at line 401 of file params.cpp.
{ this->endpoint_selector_factory_name_ = s; }
void TAO_ORB_Parameters::enforce_pref_interfaces | ( | bool | p | ) |
Definition at line 291 of file params.cpp.
{ this->enforce_preferred_interfaces_ = p; }
bool TAO_ORB_Parameters::enforce_pref_interfaces | ( | void | ) | const |
Definition at line 297 of file params.cpp.
{ return this->enforce_preferred_interfaces_; }
void TAO_ORB_Parameters::forward_invocation_on_object_not_exist | ( | bool | opt | ) |
Definition at line 362 of file params.inl.
{ this->forward_invocation_on_object_not_exist_ = x; }
bool TAO_ORB_Parameters::forward_invocation_on_object_not_exist | ( | void | ) | const |
Definition at line 356 of file params.inl.
{ return this->forward_invocation_on_object_not_exist_; }
void TAO_ORB_Parameters::forward_once_exception | ( | const int | ef | ) |
Definition at line 374 of file params.inl.
{ this->forward_once_exception_ |= ef; }
int TAO_ORB_Parameters::forward_once_exception | ( | void | ) | const |
Definition at line 368 of file params.inl.
{ return this->forward_once_exception_; }
void TAO_ORB_Parameters::get_endpoint_set | ( | const ACE_CString & | lane, | |
TAO_EndpointSet & | endpoint_set | |||
) |
Definition at line 76 of file params.cpp.
{ // Look for the lane in the endpoints map. endpoints_map_type::iterator const endpoints = this->endpoints_map_.find (lane); // If lane is not in the map, endpoint_set remains empty if (endpoints == this->endpoints_map_.end ()) return; // At this point, the parsing should not fail since they have been // parsed successfully before. int const result = this->parse_and_add_endpoints ((*endpoints).second, endpoint_set); ACE_ASSERT (result == 0); ACE_UNUSED_ARG (result); }
int TAO_ORB_Parameters::ip_hoplimit | ( | void | ) |
Set/Get the number of hops to be used for datagrams sent through socket.
Definition at line 191 of file params.inl.
{ return this->ip_hoplimit_; }
void TAO_ORB_Parameters::ip_hoplimit | ( | int | x | ) |
Definition at line 197 of file params.inl.
{ this->ip_hoplimit_ = x; }
void TAO_ORB_Parameters::ip_multicastloop | ( | bool | x | ) |
Definition at line 209 of file params.inl.
{ this->ip_multicastloop_ = x; }
bool TAO_ORB_Parameters::ip_multicastloop | ( | void | ) |
Set/Get whether we should set IP_MULTICAST_LOOP on the socket or not.
Definition at line 203 of file params.inl.
{ return this->ip_multicastloop_; }
int TAO_ORB_Parameters::linger | ( | void | ) | const |
The ORB will turn off SO_LINGER if this is zero.
Definition at line 80 of file params.inl.
{ return this->linger_; }
void TAO_ORB_Parameters::linger | ( | int | x | ) |
Definition at line 86 of file params.inl.
{ this->linger_ = x; }
ACE_CDR::ULong TAO_ORB_Parameters::max_message_size | ( | void | ) | const |
Maximum size of a GIOP message before outgoing fragmentation kicks in.
Definition at line 44 of file params.inl.
{ return this->max_message_size_; }
void TAO_ORB_Parameters::max_message_size | ( | ACE_CDR::ULong | size | ) |
Maximum size of a GIOP message before outgoing fragmentation kicks in.
Definition at line 50 of file params.inl.
{ this->max_message_size_ = size; }
const char * TAO_ORB_Parameters::mcast_discovery_endpoint | ( | void | ) | const |
Get/Set address:port for Multicast Discovery Protocol for the Naming Service.
Definition at line 125 of file params.inl.
{ return this->mcast_discovery_endpoint_.in (); }
void TAO_ORB_Parameters::mcast_discovery_endpoint | ( | const char * | mde | ) |
Definition at line 119 of file params.inl.
{ this->mcast_discovery_endpoint_ = CORBA::string_dup (mde); }
bool TAO_ORB_Parameters::negotiate_codesets | ( | void | ) | const |
Definition at line 320 of file params.inl.
{ return this->negotiate_codesets_; }
void TAO_ORB_Parameters::negotiate_codesets | ( | bool | c | ) |
Definition at line 326 of file params.inl.
{ this->negotiate_codesets_ = x; }
int TAO_ORB_Parameters::nodelay | ( | void | ) | const |
Set/Get the status of whether to use TCP_NODELAY or not.
Definition at line 155 of file params.inl.
{ return this->nodelay_; }
void TAO_ORB_Parameters::nodelay | ( | int | x | ) |
Definition at line 161 of file params.inl.
{ this->nodelay_ = x; }
unsigned long TAO_ORB_Parameters::parallel_connect_delay | ( | void | ) | const |
The milliseconds delay used to stagger individual connection starts when using parallel connects.
Definition at line 283 of file params.inl.
{ return this->parallel_connect_delay_; }
void TAO_ORB_Parameters::parallel_connect_delay | ( | unsigned long | x | ) |
Definition at line 289 of file params.inl.
{ this->parallel_connect_delay_ = x; }
int TAO_ORB_Parameters::parse_and_add_endpoints | ( | const ACE_CString & | endpoints, | |
TAO_EndpointSet & | endpoint_set | |||
) | [private] |
Definition at line 129 of file params.cpp.
{ // Parse the string into seperate endpoints, where `endpoints' is of // the form: // // protocol1://V,v@addr1,...,addrN;protocol2://addr1,...,W.w@addrN;... // // A single endpoint, instead of several, can be added just as well. static char const endpoints_delimiter = ';'; size_t const length = endpoints.length (); if (endpoints[0] == endpoints_delimiter || endpoints[length - 1] == endpoints_delimiter) { return -1; // Failure: endpoints string has an empty endpoint at the // beginning or the end of the string // (e.g. ";uiop://foo;iiop://1.3@bar") } int status = 0; // Return code: 0 = success, -1 = failure if (length > 0) { int endpoints_count = 1; for (size_t j = 0; j != length; ++j) { if (endpoints[j] == endpoints_delimiter) { ++endpoints_count; } } ssize_t begin = 0; ssize_t end = endpoints.find (endpoints_delimiter); for (int i = 0; i < endpoints_count; ++i) { if (end == 0) { // Handle case where two consecutive endpoints `;;' // delimiters are found within the endpoints set. // // Is it enough to just skip over it or should we return an // error? continue; } ACE_CString const endpt = endpoints.substring (begin, end - begin); // The substring call will work even if `end' is equal to // ACE_CString::npos since that will just extract the substring // from the offset `begin' to the end of the string. // Check for a valid URL style endpoint set ACE_CString::size_type const check_offset = endpt.find ("://"); if (check_offset > 0 && check_offset != endpt.npos) { endpoint_set.enqueue_tail (endpt); // Insert endpoint into list } else { status = -1; // Error: invalid URL style endpoint set } begin = end + 1; end = endpoints.find (endpoints_delimiter, begin); } } else { status = -1; // Failure: Empty string } return status; }
void TAO_ORB_Parameters::poa_factory_directive | ( | const ACE_TCHAR * | s | ) |
Definition at line 389 of file params.cpp.
{ this->poa_factory_directive_ = s; }
const ACE_TCHAR * TAO_ORB_Parameters::poa_factory_directive | ( | void | ) | const |
Definition at line 395 of file params.cpp.
{ return this->poa_factory_directive_.c_str (); }
const char * TAO_ORB_Parameters::poa_factory_name | ( | void | ) | const |
Definition at line 383 of file params.cpp.
{ return this->poa_factory_name_.c_str (); }
void TAO_ORB_Parameters::poa_factory_name | ( | const char * | s | ) |
Definition at line 377 of file params.cpp.
{ this->poa_factory_name_ = s; }
const char * TAO_ORB_Parameters::preferred_interfaces | ( | void | ) | const |
Definition at line 285 of file params.cpp.
{ return this->pref_network_.c_str (); }
bool TAO_ORB_Parameters::preferred_interfaces | ( | const char * | s | ) |
Accepts the list of preferred interfaces and does a simple semantic check on the string
Definition at line 216 of file params.cpp.
{ // Validates that s contains one or more comma separated // interfaces each consisting of a string with a single // assignment separator ('=' or ':') // Any other char is legal, although '*' and '?' will be // treated as wildcards. const char* p = s; bool expect_assign = false; bool expect_comma = false; bool expect_char = true; bool expect_wild = true; bool found_remote = false; while (*p != 0) { switch (*p) { #if !defined (ACE_HAS_IPV6) // Can't use this as assignment operator when IPv6 decimal // addresses may be involved. case ':': #endif /* ACE_HAS_IPV6 */ case '=': if (! expect_assign) return false; found_remote = true; expect_assign = false; expect_char = true; expect_comma = false; expect_wild = true; break; case ',': if (! expect_comma) return false; found_remote = false; expect_assign = false; expect_char = true; expect_comma = false; expect_wild = true; break; case '*': case '?': if (! expect_wild) return false; expect_assign = ! found_remote; expect_char = true; expect_comma = found_remote; expect_wild = false; break; default: if (! expect_char) return false; expect_assign = ! found_remote; expect_char = true; expect_comma = found_remote; expect_wild = true; break; } ++p; } if (!expect_comma || expect_assign) return false; this->pref_network_ = s; return true; }
const char * TAO_ORB_Parameters::protocols_hooks_name | ( | void | ) | const |
Definition at line 347 of file params.cpp.
{ return this->protocols_hooks_name_.c_str (); }
void TAO_ORB_Parameters::protocols_hooks_name | ( | const char * | s | ) |
Definition at line 341 of file params.cpp.
{ this->protocols_hooks_name_ = s; }
void TAO_ORB_Parameters::sched_policy | ( | long | x | ) |
Definition at line 233 of file params.inl.
{ this->sched_policy_ = x; }
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.
Definition at line 227 of file params.inl.
{ return this->sched_policy_; }
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.
Definition at line 239 of file params.inl.
{ return this->scope_policy_; }
void TAO_ORB_Parameters::scope_policy | ( | long | x | ) |
Definition at line 245 of file params.inl.
{ this->scope_policy_ = x; }
void TAO_ORB_Parameters::service_port | ( | TAO::MCAST_SERVICEID | service_id, | |
CORBA::UShort | port | |||
) |
Definition at line 106 of file params.inl.
{ this->service_port_[service_id] = port; }
CORBA::UShort TAO_ORB_Parameters::service_port | ( | TAO::MCAST_SERVICEID | service_id | ) | const |
Set/Get the port of services locatable through multicast.
Definition at line 113 of file params.inl.
{ return this->service_port_[service_id]; }
int TAO_ORB_Parameters::shared_profile | ( | void | ) | const |
Create shared profiles without priority.
Definition at line 295 of file params.inl.
{ return this->shared_profile_; }
void TAO_ORB_Parameters::shared_profile | ( | int | x | ) |
Definition at line 301 of file params.inl.
{ this->shared_profile_ = x; }
void TAO_ORB_Parameters::single_read_optimization | ( | int | x | ) |
Definition at line 265 of file params.inl.
{ this->single_read_optimization_ = x; }
int TAO_ORB_Parameters::single_read_optimization | ( | void | ) | const |
Single read optimization.
Definition at line 259 of file params.inl.
{ return this->single_read_optimization_; }
void TAO_ORB_Parameters::sock_dontroute | ( | int | x | ) |
Definition at line 185 of file params.inl.
{ this->sock_dontroute_ = x; }
int TAO_ORB_Parameters::sock_dontroute | ( | void | ) |
Set/Get whether we should set SO_DONTROUTE on the socket or not.
Definition at line 179 of file params.inl.
{ return this->sock_dontroute_; }
void TAO_ORB_Parameters::sock_keepalive | ( | int | x | ) |
Definition at line 173 of file params.inl.
{ this->sock_keepalive_ = x; }
int TAO_ORB_Parameters::sock_keepalive | ( | void | ) |
Set/Get whether we should set SO_KEEPALIVE on the socket or not.
Definition at line 167 of file params.inl.
{ return this->sock_keepalive_; }
void TAO_ORB_Parameters::sock_rcvbuf_size | ( | int | s | ) |
Definition at line 14 of file params.inl.
{ sock_rcvbuf_size_ = s; }
int TAO_ORB_Parameters::sock_rcvbuf_size | ( | void | ) | const |
Set/Get the size to be used for a socket's receive buffer.
Definition at line 8 of file params.inl.
{ return sock_rcvbuf_size_; }
void TAO_ORB_Parameters::sock_sndbuf_size | ( | int | s | ) |
Definition at line 26 of file params.inl.
{ sock_sndbuf_size_ = s; }
int TAO_ORB_Parameters::sock_sndbuf_size | ( | void | ) | const |
Set/Get the size to be used for a socket's send buffer.
Definition at line 20 of file params.inl.
{ return sock_sndbuf_size_; }
bool TAO_ORB_Parameters::std_profile_components | ( | void | ) | const |
Disable the OMG standard profile components, useful for homogenous environments.
Definition at line 143 of file params.inl.
{ return this->std_profile_components_; }
void TAO_ORB_Parameters::std_profile_components | ( | bool | x | ) |
Definition at line 149 of file params.inl.
{ this->std_profile_components_ = x; }
void TAO_ORB_Parameters::stub_factory_name | ( | const char * | s | ) |
Definition at line 365 of file params.cpp.
{ this->stub_factory_name_ = s; }
const char * TAO_ORB_Parameters::stub_factory_name | ( | void | ) | const |
Definition at line 371 of file params.cpp.
{ return this->stub_factory_name_.c_str (); }
long TAO_ORB_Parameters::thread_creation_flags | ( | void | ) | const |
Thread creation flags.
Shorthand for OR'ing together the scope_policy and sched_policy.
Definition at line 251 of file params.inl.
{ return this->scope_policy () | this->sched_policy (); }
void TAO_ORB_Parameters::thread_lane_resources_manager_factory_name | ( | const char * | s | ) |
Definition at line 353 of file params.cpp.
{ this->thread_lane_resources_manager_factory_name_ = s; }
const char * TAO_ORB_Parameters::thread_lane_resources_manager_factory_name | ( | void | ) | const |
Definition at line 359 of file params.cpp.
{ return this->thread_lane_resources_manager_factory_name_.c_str (); }
void TAO_ORB_Parameters::use_dotted_decimal_addresses | ( | int | x | ) |
Definition at line 62 of file params.inl.
{ this->use_dotted_decimal_addresses_ = x; }
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.
Definition at line 56 of file params.inl.
{ return this->use_dotted_decimal_addresses_; }
bool TAO_ORB_Parameters::use_parallel_connects | ( | void | ) | const |
Want to use parallel connection attempts when profiles have multiple endpoints.
Definition at line 271 of file params.inl.
{ return this->use_parallel_connects_; }
void TAO_ORB_Parameters::use_parallel_connects | ( | bool | x | ) |
Definition at line 277 of file params.inl.
{ this->use_parallel_connects_ = x; }
time_t TAO_ORB_Parameters::accept_error_delay_ [private] |
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.
bool TAO_ORB_Parameters::ami_collication_ [private] |
int TAO_ORB_Parameters::cdr_memcpy_tradeoff_ [private] |
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::forward_invocation_on_object_not_exist_ [private] |
int TAO_ORB_Parameters::forward_once_exception_ [private] |
int TAO_ORB_Parameters::ip_hoplimit_ [private] |
bool TAO_ORB_Parameters::ip_multicastloop_ [private] |
int TAO_ORB_Parameters::linger_ [private] |
bool TAO_ORB_Parameters::negotiate_codesets_ [private] |
int TAO_ORB_Parameters::nodelay_ [private] |
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.
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.
ACE_CString TAO_ORB_Parameters::pref_network_ [private] |
long TAO_ORB_Parameters::sched_policy_ [private] |
long TAO_ORB_Parameters::scope_policy_ [private] |
CORBA::UShort TAO_ORB_Parameters::service_port_[TAO_NO_OF_MCAST_SERVICES] [private] |
int TAO_ORB_Parameters::shared_profile_ [private] |
int TAO_ORB_Parameters::single_read_optimization_ [private] |
int TAO_ORB_Parameters::sock_dontroute_ [private] |
int TAO_ORB_Parameters::sock_keepalive_ [private] |
int TAO_ORB_Parameters::sock_rcvbuf_size_ [private] |
int TAO_ORB_Parameters::sock_sndbuf_size_ [private] |
bool TAO_ORB_Parameters::std_profile_components_ [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".
int TAO_ORB_Parameters::use_dotted_decimal_addresses_ [private] |
int TAO_ORB_Parameters::use_parallel_connects_ [private] |