TAO_ORB_Parameters Class Reference

Parameters that are specific to the ORB. These parameters can be for the client, the server, or for both. More...

#include <params.h>

Collaboration diagram for TAO_ORB_Parameters:
Collaboration graph
[legend]

List of all members.

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_TCHARpoa_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_

Detailed Description

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.


Member Typedef Documentation

Definition at line 55 of file params.h.


Constructor & Destructor Documentation

TAO_ORB_Parameters::TAO_ORB_Parameters ( void   ) 

Constructor.


Member Function Documentation

void TAO_ORB_Parameters::accept_error_delay ( time_t  x  ) 

Definition at line 99 of file params.inl.

00100 {
00101   this->accept_error_delay_ = x;
00102 }

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.

00094 {
00095   return this->accept_error_delay_;
00096 }

void TAO_ORB_Parameters::ace_sched_policy ( int  x  ) 

Definition at line 221 of file params.inl.

00222 {
00223   this->ace_sched_policy_ = x;
00224 }

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.

00216 {
00217   return this->ace_sched_policy_;
00218 }

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.

00099 {
00100   TAO_EndpointSet endpoint_set;
00101 
00102   // Parse the additional endpoints.
00103   int const result =
00104     this->parse_and_add_endpoints (additional_endpoints, endpoint_set);
00105 
00106   // Parse failure.
00107   if (result != 0)
00108     return result;
00109 
00110   // Look for the lane in the endpoints map.
00111   //
00112   // Return reference to endpoints string corresponding to lane
00113   // string.  If none, a default constructed string is inserted into
00114   // the map and returned.
00115   ACE_CString & existing_endpoints = this->endpoints_map_[lane];
00116 
00117   // Create the resulting endpoints string.
00118   if (existing_endpoints.length () != 0)
00119     {
00120       existing_endpoints += ";";
00121     }
00122 
00123   existing_endpoints += additional_endpoints;
00124 
00125   return 0;
00126 }

bool TAO_ORB_Parameters::ami_collication ( void   )  const

Definition at line 332 of file params.inl.

00333 {
00334   return this->ami_collication_;
00335 }

void TAO_ORB_Parameters::ami_collication ( bool  opt  ) 

Definition at line 338 of file params.inl.

00339 {
00340   this->ami_collication_ = x;
00341 }

void TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address ( int  x  ) 

Definition at line 74 of file params.inl.

00075 {
00076   this->cache_incoming_by_dotted_decimal_address_ = x;
00077 }

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.

00069 {
00070   return this->cache_incoming_by_dotted_decimal_address_;
00071 }

void TAO_ORB_Parameters::cdr_memcpy_tradeoff ( int  x  ) 

Definition at line 38 of file params.inl.

00039 {
00040   this->cdr_memcpy_tradeoff_ = x;
00041 }

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.

00033 {
00034   return this->cdr_memcpy_tradeoff_;
00035 }

const char * TAO_ORB_Parameters::collocation_resolver_name ( void   )  const

Definition at line 350 of file params.inl.

00351 {
00352   return this->collocation_resolver_name_.c_str ();
00353 }

void TAO_ORB_Parameters::collocation_resolver_name ( const char *  s  ) 

Definition at line 344 of file params.inl.

00345 {
00346   this->collocation_resolver_name_ = s;
00347 }

void TAO_ORB_Parameters::default_init_ref ( const char *  default_init_ref  ) 

Definition at line 131 of file params.inl.

00132 {
00133   this->default_init_ref_ = default_init_ref;
00134 }

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.

00138 {
00139   return CORBA::string_dup (this->default_init_ref_.c_str ());
00140 }

void TAO_ORB_Parameters::disable_rt_collocation_resolver ( bool  x  ) 

Definition at line 313 of file params.inl.

00314 {
00315   this->disable_rt_collocation_resolver_ = x;
00316 }

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.

00308 {
00309   return this->disable_rt_collocation_resolver_;
00310 }

const char * TAO_ORB_Parameters::endpoint_selector_factory_name ( void   )  const

Definition at line 407 of file params.cpp.

00408 {
00409   return this->endpoint_selector_factory_name_.c_str ();
00410 }

void TAO_ORB_Parameters::endpoint_selector_factory_name ( const char *  s  ) 

Definition at line 401 of file params.cpp.

00402 {
00403   this->endpoint_selector_factory_name_ = s;
00404 }

bool TAO_ORB_Parameters::enforce_pref_interfaces ( void   )  const

Definition at line 297 of file params.cpp.

00298 {
00299   return this->enforce_preferred_interfaces_;
00300 }

void TAO_ORB_Parameters::enforce_pref_interfaces ( bool  p  ) 

Definition at line 291 of file params.cpp.

00292 {
00293   this->enforce_preferred_interfaces_ = p;
00294 }

bool TAO_ORB_Parameters::forward_invocation_on_object_not_exist ( void   )  const

Definition at line 356 of file params.inl.

00357 {
00358   return this->forward_invocation_on_object_not_exist_;
00359 }

void TAO_ORB_Parameters::forward_invocation_on_object_not_exist ( bool  opt  ) 

Definition at line 362 of file params.inl.

00363 {
00364   this->forward_invocation_on_object_not_exist_ = x;
00365 }

int TAO_ORB_Parameters::forward_once_exception ( void   )  const

Definition at line 368 of file params.inl.

00369 {
00370   return this->forward_once_exception_;
00371 }

void TAO_ORB_Parameters::forward_once_exception ( const int  ef  ) 

Definition at line 374 of file params.inl.

00375 {
00376   this->forward_once_exception_ |= ef;
00377 }

void TAO_ORB_Parameters::get_endpoint_set ( const ACE_CString lane,
TAO_EndpointSet endpoint_set 
)

Definition at line 76 of file params.cpp.

00078 {
00079   // Look for the lane in the endpoints map.
00080   endpoints_map_type::iterator const endpoints =
00081     this->endpoints_map_.find (lane);
00082 
00083   // If lane is not in the map, endpoint_set remains empty
00084   if (endpoints == this->endpoints_map_.end ())
00085     return;
00086 
00087   // At this point, the parsing should not fail since they have been
00088   // parsed successfully before.
00089   int const result =
00090     this->parse_and_add_endpoints ((*endpoints).second, endpoint_set);
00091 
00092   ACE_ASSERT (result == 0);
00093   ACE_UNUSED_ARG (result);
00094 }

void TAO_ORB_Parameters::ip_hoplimit ( int  x  ) 

Definition at line 197 of file params.inl.

00198 {
00199   this->ip_hoplimit_ = x;
00200 }

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.

00192 {
00193   return this->ip_hoplimit_;
00194 }

void TAO_ORB_Parameters::ip_multicastloop ( bool  x  ) 

Definition at line 209 of file params.inl.

00210 {
00211   this->ip_multicastloop_ = x;
00212 }

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.

00204 {
00205   return this->ip_multicastloop_;
00206 }

void TAO_ORB_Parameters::linger ( int  x  ) 

Definition at line 86 of file params.inl.

00087 {
00088   this->linger_ = x;
00089 }

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.

00081 {
00082   return this->linger_;
00083 }

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.

00051 {
00052   this->max_message_size_ = size;
00053 }

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.

00045 {
00046   return this->max_message_size_;
00047 }

void TAO_ORB_Parameters::mcast_discovery_endpoint ( const char *  mde  ) 

Definition at line 119 of file params.inl.

00120 {
00121   this->mcast_discovery_endpoint_ = CORBA::string_dup (mde);
00122 }

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.

00126 {
00127   return this->mcast_discovery_endpoint_.in ();
00128 }

bool TAO_ORB_Parameters::negotiate_codesets ( void   )  const

Definition at line 320 of file params.inl.

00321 {
00322   return this->negotiate_codesets_;
00323 }

void TAO_ORB_Parameters::negotiate_codesets ( bool  c  ) 

Definition at line 326 of file params.inl.

00327 {
00328   this->negotiate_codesets_ = x;
00329 }

void TAO_ORB_Parameters::nodelay ( int  x  ) 

Definition at line 161 of file params.inl.

00162 {
00163   this->nodelay_ = x;
00164 }

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.

00156 {
00157   return this->nodelay_;
00158 }

void TAO_ORB_Parameters::parallel_connect_delay ( unsigned long  x  ) 

Definition at line 289 of file params.inl.

00290 {
00291   this->parallel_connect_delay_ = x;
00292 }

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.

00284 {
00285   return this->parallel_connect_delay_;
00286 }

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.

00131 {
00132   // Parse the string into seperate endpoints, where `endpoints' is of
00133   // the form:
00134   //
00135   //    protocol1://V,v@addr1,...,addrN;protocol2://addr1,...,W.w@addrN;...
00136   //
00137   // A single endpoint, instead of several, can be added just as well.
00138 
00139   static char const endpoints_delimiter = ';';
00140 
00141   size_t const length = endpoints.length ();
00142 
00143   if (endpoints[0] == endpoints_delimiter ||
00144       endpoints[length - 1] == endpoints_delimiter)
00145     {
00146       return -1;
00147       // Failure: endpoints string has an empty endpoint at the
00148       // beginning or the end of the string
00149       // (e.g. ";uiop://foo;iiop://1.3@bar")
00150     }
00151 
00152   int status = 0;
00153   // Return code:  0 = success,  -1 = failure
00154 
00155   if (length > 0)
00156     {
00157       int endpoints_count = 1;
00158 
00159       for (size_t j = 0; j != length; ++j)
00160         {
00161           if (endpoints[j] == endpoints_delimiter)
00162             {
00163               ++endpoints_count;
00164             }
00165         }
00166 
00167       ssize_t begin = 0;
00168       ssize_t end = endpoints.find (endpoints_delimiter);
00169 
00170       for (int i = 0; i < endpoints_count; ++i)
00171         {
00172           if (end == 0)
00173             {
00174               // Handle case where two consecutive endpoints `;;'
00175               // delimiters are found within the endpoints set.
00176               //
00177               // Is it enough to just skip over it or should we return an
00178               // error?
00179               continue;
00180             }
00181 
00182           ACE_CString const endpt =
00183             endpoints.substring (begin, end - begin);
00184           // The substring call will work even if `end' is equal to
00185           // ACE_CString::npos since that will just extract the substring
00186           // from the offset `begin' to the end of the string.
00187 
00188           // Check for a valid URL style endpoint set
00189           ACE_CString::size_type const check_offset = endpt.find ("://");
00190 
00191           if (check_offset > 0 &&
00192               check_offset != endpt.npos)
00193             {
00194               endpoint_set.enqueue_tail (endpt);
00195               // Insert endpoint into list
00196             }
00197           else
00198             {
00199               status = -1;  // Error: invalid URL style endpoint set
00200             }
00201 
00202           begin = end + 1;
00203           end = endpoints.find (endpoints_delimiter, begin);
00204         }
00205     }
00206   else
00207     {
00208       status = -1;
00209       // Failure:  Empty string
00210     }
00211 
00212   return status;
00213 }

const ACE_TCHAR * TAO_ORB_Parameters::poa_factory_directive ( void   )  const

Definition at line 395 of file params.cpp.

00396 {
00397   return this->poa_factory_directive_.c_str ();
00398 }

void TAO_ORB_Parameters::poa_factory_directive ( const ACE_TCHAR s  ) 

Definition at line 389 of file params.cpp.

00390 {
00391   this->poa_factory_directive_ = s;
00392 }

const char * TAO_ORB_Parameters::poa_factory_name ( void   )  const

Definition at line 383 of file params.cpp.

00384 {
00385   return this->poa_factory_name_.c_str ();
00386 }

void TAO_ORB_Parameters::poa_factory_name ( const char *  s  ) 

Definition at line 377 of file params.cpp.

00378 {
00379   this->poa_factory_name_ = s;
00380 }

const char * TAO_ORB_Parameters::preferred_interfaces ( void   )  const

Definition at line 285 of file params.cpp.

00286 {
00287   return this->pref_network_.c_str ();
00288 }

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.

00217 {
00218   // Validates that s contains one or more comma separated
00219   // interfaces each consisting of a string with a single
00220   // assignment separator ('=' or ':')
00221   // Any other char is legal, although '*' and '?' will be
00222   // treated as wildcards.
00223   const char* p = s;
00224   bool expect_assign = false;
00225   bool expect_comma = false;
00226   bool expect_char = true;
00227   bool expect_wild = true;
00228   bool found_remote = false;
00229   while (*p != 0)
00230   {
00231     switch (*p)
00232     {
00233 #if !defined (ACE_HAS_IPV6)
00234     // Can't use this as assignment operator when IPv6 decimal
00235     // addresses may be involved.
00236     case ':':
00237 #endif /* ACE_HAS_IPV6 */
00238     case '=':
00239       if (! expect_assign)
00240         return false;
00241       found_remote = true;
00242       expect_assign = false;
00243       expect_char = true;
00244       expect_comma = false;
00245       expect_wild = true;
00246       break;
00247     case ',':
00248       if (! expect_comma)
00249         return false;
00250       found_remote = false;
00251       expect_assign = false;
00252       expect_char = true;
00253       expect_comma = false;
00254       expect_wild = true;
00255       break;
00256     case '*':
00257     case '?':
00258       if (! expect_wild)
00259         return false;
00260       expect_assign = ! found_remote;
00261       expect_char = true;
00262       expect_comma = found_remote;
00263       expect_wild = false;
00264       break;
00265     default:
00266       if (! expect_char)
00267         return false;
00268       expect_assign = ! found_remote;
00269       expect_char = true;
00270       expect_comma = found_remote;
00271       expect_wild = true;
00272       break;
00273     }
00274     ++p;
00275     }
00276   if (!expect_comma || expect_assign)
00277     return false;
00278 
00279   this->pref_network_ = s;
00280 
00281   return true;
00282 }

const char * TAO_ORB_Parameters::protocols_hooks_name ( void   )  const

Definition at line 347 of file params.cpp.

00348 {
00349   return this->protocols_hooks_name_.c_str ();
00350 }

void TAO_ORB_Parameters::protocols_hooks_name ( const char *  s  ) 

Definition at line 341 of file params.cpp.

00342 {
00343   this->protocols_hooks_name_ = s;
00344 }

void TAO_ORB_Parameters::sched_policy ( long  x  ) 

Definition at line 233 of file params.inl.

00234 {
00235   this->sched_policy_ = x;
00236 }

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.

00228 {
00229   return this->sched_policy_;
00230 }

void TAO_ORB_Parameters::scope_policy ( long  x  ) 

Definition at line 245 of file params.inl.

00246 {
00247   this->scope_policy_ = x;
00248 }

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.

00240 {
00241   return this->scope_policy_;
00242 }

void TAO_ORB_Parameters::service_port ( TAO::MCAST_SERVICEID  service_id,
CORBA::UShort  port 
)

Definition at line 106 of file params.inl.

00108 {
00109   this->service_port_[service_id] = port;
00110 }

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.

00114 {
00115   return this->service_port_[service_id];
00116 }

void TAO_ORB_Parameters::shared_profile ( int  x  ) 

Definition at line 301 of file params.inl.

00302 {
00303   this->shared_profile_ = x;
00304 }

int TAO_ORB_Parameters::shared_profile ( void   )  const

Create shared profiles without priority.

Definition at line 295 of file params.inl.

00296 {
00297   return this->shared_profile_;
00298 }

void TAO_ORB_Parameters::single_read_optimization ( int  x  ) 

Definition at line 265 of file params.inl.

00266 {
00267   this->single_read_optimization_ = x;
00268 }

int TAO_ORB_Parameters::single_read_optimization ( void   )  const

Single read optimization.

Definition at line 259 of file params.inl.

00260 {
00261   return this->single_read_optimization_;
00262 }

void TAO_ORB_Parameters::sock_dontroute ( int  x  ) 

Definition at line 185 of file params.inl.

00186 {
00187   this->sock_dontroute_ = x;
00188 }

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.

00180 {
00181   return this->sock_dontroute_;
00182 }

void TAO_ORB_Parameters::sock_keepalive ( int  x  ) 

Definition at line 173 of file params.inl.

00174 {
00175   this->sock_keepalive_ = x;
00176 }

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.

00168 {
00169   return this->sock_keepalive_;
00170 }

void TAO_ORB_Parameters::sock_rcvbuf_size ( int  s  ) 

Definition at line 14 of file params.inl.

00015 {
00016   sock_rcvbuf_size_ = s;
00017 }

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.

00009 {
00010   return sock_rcvbuf_size_;
00011 }

void TAO_ORB_Parameters::sock_sndbuf_size ( int  s  ) 

Definition at line 26 of file params.inl.

00027 {
00028   sock_sndbuf_size_ = s;
00029 }

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.

00021 {
00022   return sock_sndbuf_size_;
00023 }

void TAO_ORB_Parameters::std_profile_components ( bool  x  ) 

Definition at line 149 of file params.inl.

00150 {
00151   this->std_profile_components_ = x;
00152 }

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.

00144 {
00145   return this->std_profile_components_;
00146 }

const char * TAO_ORB_Parameters::stub_factory_name ( void   )  const

Definition at line 371 of file params.cpp.

00372 {
00373   return this->stub_factory_name_.c_str ();
00374 }

void TAO_ORB_Parameters::stub_factory_name ( const char *  s  ) 

Definition at line 365 of file params.cpp.

00366 {
00367   this->stub_factory_name_ = s;
00368 }

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.

00252 {
00253   return
00254     this->scope_policy () |
00255     this->sched_policy ();
00256 }

const char * TAO_ORB_Parameters::thread_lane_resources_manager_factory_name ( void   )  const

Definition at line 359 of file params.cpp.

00360 {
00361   return this->thread_lane_resources_manager_factory_name_.c_str ();
00362 }

void TAO_ORB_Parameters::thread_lane_resources_manager_factory_name ( const char *  s  ) 

Definition at line 353 of file params.cpp.

00354 {
00355   this->thread_lane_resources_manager_factory_name_ = s;
00356 }

void TAO_ORB_Parameters::use_dotted_decimal_addresses ( int  x  ) 

Definition at line 62 of file params.inl.

00063 {
00064   this->use_dotted_decimal_addresses_ = x;
00065 }

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.

00057 {
00058   return this->use_dotted_decimal_addresses_;
00059 }

void TAO_ORB_Parameters::use_parallel_connects ( bool  x  ) 

Definition at line 277 of file params.inl.

00278 {
00279   this->use_parallel_connects_ = x;
00280 }

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.

00272 {
00273   return this->use_parallel_connects_;
00274 }


Member Data Documentation

For setting the accept retry delay.

Definition at line 337 of file params.h.

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 350 of file params.h.

Do we make collocated ami calls.

Definition at line 422 of file params.h.

If incoming connections should be cached against IP (true) or hostname (false).

Definition at line 331 of file params.h.

Control the strategy for copying vs. appeding octet sequences in CDR streams.

Definition at line 317 of file params.h.

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".

Definition at line 490 of file params.h.

List of comma separated prefixes from ORBDefaultInitRef.

Definition at line 292 of file params.h.

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.

Definition at line 400 of file params.h.

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".

Definition at line 445 of file params.h.

Map of endpoints this server is willing to accept requests on.

Definition at line 282 of file params.h.

Definition at line 402 of file params.h.

Do we need forward invocation to next avaiable profile upon OBJECT_NOT_EXIST exception?

Definition at line 476 of file params.h.

The exceptions upon which the requests will be forwarded once.

Definition at line 482 of file params.h.

Number of hops to be used for datagrams sent through socket.

Definition at line 310 of file params.h.

1 if we're using IP_MULTICAST_LOOP and 0 otherwise.

Definition at line 313 of file params.h.

For setting the SO_LINGER option.

Definition at line 334 of file params.h.

Maximum GIOP message size to be sent over a given transport.

Setting a maximum message size will cause outgoing GIOP fragmentation to be enabled.

Definition at line 324 of file params.h.

Address:port for Multicast Discovery Protocol for the Naming Service.

Definition at line 289 of file params.h.

Enable the use of codeset negotiation.

Definition at line 419 of file params.h.

1 if we're using TCP_NODELAY and 0 otherwise.

Definition at line 301 of file params.h.

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.

Definition at line 384 of file params.h.

The service configurator directive used to load poa_factory_name_ dynamically.

Definition at line 469 of file params.h.

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.

Definition at line 463 of file params.h.

Preferred network interfaces as a string.

Definition at line 387 of file params.h.

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".

Definition at line 429 of file params.h.

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 359 of file params.h.

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 368 of file params.h.

CORBA::UShort TAO_ORB_Parameters::service_port_[TAO_NO_OF_MCAST_SERVICES] [private]

Port numbers of the configured services.

Definition at line 285 of file params.h.

Shared Profile - Use the same profile for multiple endpoints.

Definition at line 374 of file params.h.

Single read optimization.

Definition at line 371 of file params.h.

1 if we're using SO_DONTROUTE and 0 otherwise (default 0).

Definition at line 307 of file params.h.

1 if we're using SO_KEEPALIVE and 0 otherwise (default 0).

Definition at line 304 of file params.h.

Size to be used for a socket's receive buffer.

Definition at line 295 of file params.h.

Size to be used for a socket's send buffer.

Definition at line 298 of file params.h.

If true then the standard OMG components are not generated.

Definition at line 340 of file params.h.

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".

Definition at line 437 of file params.h.

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".

Definition at line 455 of file params.h.

For selecting a address notation.

Definition at line 327 of file params.h.

Use Parallel Connects - Try to connect to all endpoints in a shared profile at once, use the first to complete.

Definition at line 378 of file params.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:26:51 2009 for TAO by  doxygen 1.6.1