summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Connector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IIOP_Connector.cpp')
-rw-r--r--TAO/tao/IIOP_Connector.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/TAO/tao/IIOP_Connector.cpp b/TAO/tao/IIOP_Connector.cpp
index ddc3d34c51a..6b61524507c 100644
--- a/TAO/tao/IIOP_Connector.cpp
+++ b/TAO/tao/IIOP_Connector.cpp
@@ -12,7 +12,7 @@
#include "ace/Auto_Ptr.h"
#include "tao/Base_Transport_Property.h"
#include "tao/Protocols_Hooks.h"
-#include "tao/Connection_Purging_Strategy.h"
+#include "tao/Transport_Cache_Manager.h"
#include "ace/Strategies_T.h"
#include "ace/SOCK_Connector.h"
@@ -159,7 +159,7 @@ TAO_IIOP_Connector::connect (TAO_Transport_Descriptor_Interface *desc,
// Check the Cache first for connections
// If transport found, reference count is incremented on assignment
- if (this->orb_core ()->purging_strategy ()->find_in_cache (desc,
+ if (this->orb_core ()->transport_cache ()->find_transport (desc,
base_transport) == 0)
{
if (TAO_debug_level > 2)
@@ -176,7 +176,7 @@ TAO_IIOP_Connector::connect (TAO_Transport_Descriptor_Interface *desc,
ACE_TEXT ("making a new connection\n")));
// Purge connections (if necessary)
- this->orb_core ()->purging_strategy ()->purge ();
+ this->orb_core ()->transport_cache ()->purge ();
// @@ This needs to change in the next round when we implement a
// policy that will not allow new connections when a connection
@@ -228,8 +228,8 @@ TAO_IIOP_Connector::connect (TAO_Transport_Descriptor_Interface *desc,
base_transport = TAO_Transport::_duplicate (svc_handler->transport ());
// Add the handler to Cache
int retval =
- this->orb_core ()->purging_strategy ()->add_to_cache (desc,
- base_transport);
+ this->orb_core ()->transport_cache ()->cache_transport (desc,
+ base_transport);
if (retval != 0 && TAO_debug_level > 0)
{
@@ -374,8 +374,8 @@ TAO_IIOP_Connector::preconnect (const char *preconnects)
// Add the handler to Cache
int retval =
- this->orb_core ()->purging_strategy ()->add_to_cache (&prop,
- handlers[slot]->transport ());
+ this->orb_core ()->transport_cache ()->cache_transport (&prop,
+ handlers[slot]->transport ());
successes++;
if (retval != 0 && TAO_debug_level > 4)