diff options
author | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-19 22:45:37 +0000 |
---|---|---|
committer | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-19 22:45:37 +0000 |
commit | 783766cf6669bf74fbaeebc0d859d515c9f4b432 (patch) | |
tree | a552b8f141be0b8f98b8bee60322a8ba3b7c8b63 | |
parent | 6d0756f8bd8123b73e543169fe521b5e4d7caec1 (diff) | |
download | ATCD-783766cf6669bf74fbaeebc0d859d515c9f4b432.tar.gz |
Added connection_caching_strategy and purge_percent options
-rw-r--r-- | TAO/tao/Resource_Factory.cpp | 12 | ||||
-rw-r--r-- | TAO/tao/Resource_Factory.h | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/TAO/tao/Resource_Factory.cpp b/TAO/tao/Resource_Factory.cpp index 61cfb10e8c0..96e25a60e9e 100644 --- a/TAO/tao/Resource_Factory.cpp +++ b/TAO/tao/Resource_Factory.cpp @@ -121,6 +121,18 @@ TAO_Resource_Factory::init_protocol_factories (void) return -1; } +int +TAO_Resource_Factory::get_connection_caching_strategy_type (void) const +{ + return 0; +} + +double +TAO_Resource_Factory::get_purge_percentage (void) const +{ + return 20; +} + #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class ACE_Dynamic_Service<TAO_Resource_Factory>; diff --git a/TAO/tao/Resource_Factory.h b/TAO/tao/Resource_Factory.h index 6280b6efad9..166b2b8c4f4 100644 --- a/TAO/tao/Resource_Factory.h +++ b/TAO/tao/Resource_Factory.h @@ -137,6 +137,14 @@ public: // from the service configurator. It is assumed // that only one thread will call this method at ORB initialization. // NON-THREAD-SAFE + + virtual int get_connection_caching_strategy_type (void) const; + // This accesses the connection caching strategy we use for managing + // purging of unused entries from the connection cache on demnad. + + virtual double get_purge_percentage (void) const; + // This denotes the amount of entries to remove from the connection + // cache. }; #endif /* TAO_RESOURCE_FACTORY_H */ |