summaryrefslogtreecommitdiff
path: root/TAO/tao/default_client.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-02 18:40:49 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-02 18:40:49 +0000
commitb4974e9cfde0b24f8604107b6f7936a5cc8e1576 (patch)
treef4e855aa7e4080434d02518fd7ae6703d2a2a80a /TAO/tao/default_client.cpp
parent62a5228c58ec2e6deb550efbc3c23c012b64c457 (diff)
downloadATCD-b4974e9cfde0b24f8604107b6f7936a5cc8e1576.tar.gz
ChangeLogTag:Wed Jun 2 13:18:38 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/default_client.cpp')
-rw-r--r--TAO/tao/default_client.cpp89
1 files changed, 0 insertions, 89 deletions
diff --git a/TAO/tao/default_client.cpp b/TAO/tao/default_client.cpp
index d7dd3cfb25e..d4851ebde16 100644
--- a/TAO/tao/default_client.cpp
+++ b/TAO/tao/default_client.cpp
@@ -16,14 +16,8 @@ TAO_Default_Client_Strategy_Factory::TAO_Default_Client_Strategy_Factory (void)
{
// Use single thread client connection handler
#if defined (TAO_USE_ST_CLIENT_CONNECTION_HANDLER)
- this->client_connection_handler_ = ST_CLIENT_CONNECTION_HANDLER;
- // @@ Later, we will have a separate flag for the wait
- // strategies. (Alex).
this->wait_strategy_ = TAO_WAIT_ON_REACTOR;
#else
- this->client_connection_handler_ = MT_CLIENT_CONNECTION_HANDLER;
- // @@ Later, we will have a separate flag for the wait
- // strategies. (Alex).
this->wait_strategy_ = TAO_WAIT_ON_LEADER_FOLLOWER;
#endif /* TAO_USE_ST_CLIENT_CONNECTION_HANDLER */
@@ -84,17 +78,14 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, char ** argv)
if (ACE_OS::strcasecmp (name, "MT") == 0)
{
- this->client_connection_handler_ = MT_CLIENT_CONNECTION_HANDLER;
this->wait_strategy_ = TAO_WAIT_ON_LEADER_FOLLOWER;
}
else if (ACE_OS::strcasecmp (name, "ST") == 0)
{
- this->client_connection_handler_ = ST_CLIENT_CONNECTION_HANDLER;
this->wait_strategy_ = TAO_WAIT_ON_REACTOR;
}
else if (ACE_OS::strcasecmp (name, "RW") == 0)
{
- this->client_connection_handler_ = RW_CLIENT_CONNECTION_HANDLER;
this->wait_strategy_ = TAO_WAIT_ON_READ;
}
}
@@ -133,37 +124,6 @@ TAO_Default_Client_Strategy_Factory::create_iiop_profile_lock (void)
return the_lock;
}
- // @@ This routine should not be here, otherwise the protocols are
- // not pluggable, but we need to integrate the changes from
- // asynchronous messaging to eliminate this method....
-ACE_Creation_Strategy<TAO_Client_Connection_Handler> *
-TAO_Default_Client_Strategy_Factory::create_client_creation_strategy (void)
-{
- // Create the correct client connection creation strategy
- ACE_Creation_Strategy<TAO_Client_Connection_Handler> *client_creation_strategy = 0;
-
- if (this->client_connection_handler_ == ST_CLIENT_CONNECTION_HANDLER)
- {
- ACE_NEW_RETURN (client_creation_strategy,
- TAO_ST_Connect_Creation_Strategy,
- 0);
- }
- else if (this->client_connection_handler_ == MT_CLIENT_CONNECTION_HANDLER)
- {
- ACE_NEW_RETURN (client_creation_strategy,
- TAO_MT_Connect_Creation_Strategy,
- 0);
- }
- else if (this->client_connection_handler_ == RW_CLIENT_CONNECTION_HANDLER)
- {
- ACE_NEW_RETURN (client_creation_strategy,
- TAO_RW_Connect_Creation_Strategy,
- 0);
- }
-
- return client_creation_strategy;
-}
-
// @@ Alex: implement the WS and RMS methods here, similar to the
// create_iiop_profile_lock above...
// @@ Alex: remember your idea of using the
@@ -221,55 +181,6 @@ TAO_Default_Client_Strategy_Factory::create_wait_strategy (TAO_Transport *transp
// ****************************************************************
-TAO_ST_Connect_Creation_Strategy::TAO_ST_Connect_Creation_Strategy (ACE_Thread_Manager *t)
- : ACE_Creation_Strategy<TAO_Client_Connection_Handler> (t)
-{
-}
-
-int
-TAO_ST_Connect_Creation_Strategy::make_svc_handler (TAO_Client_Connection_Handler *&sh)
-{
- if (sh == 0)
- ACE_NEW_RETURN (sh, TAO_Client_Connection_Handler (this->thr_mgr_), -1);
-
- return 0;
-}
-
-// ****************************************************************
-
-TAO_MT_Connect_Creation_Strategy::TAO_MT_Connect_Creation_Strategy (ACE_Thread_Manager *t)
- : ACE_Creation_Strategy<TAO_Client_Connection_Handler> (t)
-{
-}
-
-int
-TAO_MT_Connect_Creation_Strategy::make_svc_handler (TAO_Client_Connection_Handler *&sh)
-{
- if (sh == 0)
- ACE_NEW_RETURN (sh, TAO_Client_Connection_Handler (this->thr_mgr_), -1);
-
- return 0;
-}
-
-// ****************************************************************
-
-TAO_RW_Connect_Creation_Strategy::TAO_RW_Connect_Creation_Strategy (ACE_Thread_Manager *t)
- : ACE_Creation_Strategy<TAO_Client_Connection_Handler> (t)
-{
-}
-
-int
-TAO_RW_Connect_Creation_Strategy::make_svc_handler (TAO_Client_Connection_Handler *&sh)
-{
- // @@ Creating the common connection handler. (Alex).
- if (sh == 0)
- ACE_NEW_RETURN (sh, TAO_Client_Connection_Handler (this->thr_mgr_), -1);
-
- return 0;
-}
-
-// ****************************************************************
-
ACE_STATIC_SVC_DEFINE (TAO_Default_Client_Strategy_Factory,
ASYS_TEXT ("Client_Strategy_Factory"),
ACE_SVC_OBJ_T,