summaryrefslogtreecommitdiff
path: root/TAO/tao/default_client.cpp
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-08-27 05:01:07 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-08-27 05:01:07 +0000
commitdd451909a6c9b611c076e160567878c25d6febcb (patch)
tree92b365d819090f558b5e7cb749f981caa7c97099 /TAO/tao/default_client.cpp
parentfc2d77f90a99cf39e6d46ae60cc54286ebb6dbea (diff)
downloadATCD-dd451909a6c9b611c076e160567878c25d6febcb.tar.gz
ChangeLogTag:Fri Aug 26 23:48:25 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/default_client.cpp')
-rw-r--r--TAO/tao/default_client.cpp27
1 files changed, 25 insertions, 2 deletions
diff --git a/TAO/tao/default_client.cpp b/TAO/tao/default_client.cpp
index 41749d62ce8..dbec64ee24d 100644
--- a/TAO/tao/default_client.cpp
+++ b/TAO/tao/default_client.cpp
@@ -25,8 +25,12 @@ ACE_RCSID (tao,
TAO_Default_Client_Strategy_Factory::TAO_Default_Client_Strategy_Factory (void)
: profile_lock_type_ (TAO_THREAD_LOCK)
- , rd_table_size_ (TAO_RD_TABLE_SIZE)
- , muxed_strategy_lock_type_ (TAO_THREAD_LOCK)
+ , rd_table_size_ (TAO_RD_TABLE_SIZE)
+ , muxed_strategy_lock_type_ (TAO_THREAD_LOCK)
+ , transport_mux_strategy_ (TAO_MUXED_TMS)
+ , wait_strategy_ (TAO_WAIT_ON_LEADER_FOLLOWER)
+ , connect_strategy_ (TAO_LEADER_FOLLOWER_CONNECT)
+ , use_cleanup_options_ (true)
{
// Use single thread client connection handler
#if defined (TAO_USE_ST_CLIENT_CONNECTION_HANDLER)
@@ -196,6 +200,19 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
this->rd_table_size_ = ACE_OS::atoi (argv[curarg]);
}
}
+ else if (ACE_OS::strcmp (argv[curarg],
+ ACE_LIB_TEXT("-ORBConnectionHandlerCleanup")) == 0)
+ {
+ curarg++;
+ if (curarg < argc)
+ {
+ ACE_TCHAR* name = argv[curarg];
+
+ if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("false")) == 0)
+ this->use_cleanup_options_ = false;
+ }
+ }
else if (ACE_OS::strncmp (argv[curarg], ACE_TEXT("-ORB"), 4) == 0)
{
// Can we assume there is an argument after the option?
@@ -360,6 +377,12 @@ TAO_Default_Client_Strategy_Factory::report_option_value_error (
option_value, option_name));
}
+bool
+TAO_Default_Client_Strategy_Factory::use_cleanup_options (void) const
+{
+ return this->use_cleanup_options_;
+}
+
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_Default_Client_Strategy_Factory,