summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-19 22:48:58 +0000
committerkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-19 22:48:58 +0000
commitb73deb4c8899d47e2d0621ef52ec6725f74d6874 (patch)
tree0e727fbf534bb6189d84286b1fe70a63e7840745
parent4e7f860d0ebbd1cfce14edde93bd3b7044eec2a4 (diff)
downloadATCD-b73deb4c8899d47e2d0621ef52ec6725f74d6874.tar.gz
Added connection_caching_strategy and purge_percent options.
-rw-r--r--TAO/tao/ORB_Core.cpp12
-rw-r--r--TAO/tao/ORB_Core.h7
2 files changed, 19 insertions, 0 deletions
diff --git a/TAO/tao/ORB_Core.cpp b/TAO/tao/ORB_Core.cpp
index a4dd33b3355..4dbbae6045d 100644
--- a/TAO/tao/ORB_Core.cpp
+++ b/TAO/tao/ORB_Core.cpp
@@ -1685,6 +1685,18 @@ TAO_ORB_Core::default_environment (CORBA_Environment *env)
TAO_TSS_RESOURCES::instance ()->default_environment_ = env;
}
+int
+TAO_ORB_Core::connection_caching_strategy_type (void)
+{
+ return this->resource_factory ()->get_connection_caching_strategy_type ();
+}
+
+double
+TAO_ORB_Core::purge_percentage (void)
+{
+ return this->resource_factory ()->get_purge_percentage ();
+}
+
#if defined (TAO_HAS_CORBA_MESSAGING)
TAO_Policy_Current &
diff --git a/TAO/tao/ORB_Core.h b/TAO/tao/ORB_Core.h
index d5bcfbc4c64..9fd453dbe53 100644
--- a/TAO/tao/ORB_Core.h
+++ b/TAO/tao/ORB_Core.h
@@ -414,6 +414,13 @@ public:
int run (ACE_Time_Value *tv, int break_on_timeouts);
// Run the event loop
+ int connection_caching_strategy_type (void);
+ // Tells what type of caching strategy to use for connection management.
+
+ double purge_percentage (void);
+ // What is the percentage of entries to be removed from the
+ // connection cache on demand?
+
protected:
int set_iiop_endpoint (int dotted_decimal_addresses,
CORBA::UShort port,