diff options
author | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-15 23:56:04 +0000 |
---|---|---|
committer | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-15 23:56:04 +0000 |
commit | 41bbbfda9a3186cea89b2cf0089cc42014465bee (patch) | |
tree | c52de50f5413fafb31ef107c1bac8571a210d913 /examples | |
parent | c95be4f2020f4ecd6fd5e06a3a2ec2548da9963a (diff) | |
download | ATCD-41bbbfda9a3186cea89b2cf0089cc42014465bee.tar.gz |
Added caching_strategy_utility definitions.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Web_Crawler/URL_Visitor.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/examples/Web_Crawler/URL_Visitor.h b/examples/Web_Crawler/URL_Visitor.h index 1469fa7803e..651ff814a80 100644 --- a/examples/Web_Crawler/URL_Visitor.h +++ b/examples/Web_Crawler/URL_Visitor.h @@ -28,6 +28,7 @@ #include "ace/Caching_Strategies_T.h" #include "ace/Cached_Connect_Strategy_T.h" #include "Options.h" +#include "ace/Pair_T.h" // Forward declarations. class URL_Validation_Visitor; @@ -224,6 +225,7 @@ protected: // Make the appropriate <URL_Visitation_Strategy_Factory>. }; + class URL_Validation_Visitor : public URL_Visitor { // = TITLE @@ -269,24 +271,31 @@ public: ACE_Pair<Svc_Handler *, int>,\ ACE_Hash<REFCOUNTED_HASH_RECYCLABLE_ADDRESS>, \ ACE_Equal_To<REFCOUNTED_HASH_RECYCLABLE_ADDRESS>,\ - ACE_Null_Mutex> - CONNECTION_HASH_MAP; + ACE_Null_Mutex> + CONNECTION_HASH_MAP; typedef ACE_Hash_Map_Iterator_Ex<REFCOUNTED_HASH_RECYCLABLE_ADDRESS,\ ACE_Pair<Svc_Handler *, int>,\ ACE_Hash<REFCOUNTED_HASH_RECYCLABLE_ADDRESS>, \ ACE_Equal_To<REFCOUNTED_HASH_RECYCLABLE_ADDRESS>,\ - ACE_Null_Mutex> - CONNECTION_HASH_MAP_ITERATOR; + ACE_Null_Mutex> + CONNECTION_HASH_MAP_ITERATOR; typedef ACE_Hash_Map_Reverse_Iterator_Ex<REFCOUNTED_HASH_RECYCLABLE_ADDRESS,\ ACE_Pair<Svc_Handler *, int>,\ ACE_Hash<REFCOUNTED_HASH_RECYCLABLE_ADDRESS>, \ ACE_Equal_To<REFCOUNTED_HASH_RECYCLABLE_ADDRESS>,\ - ACE_Null_Mutex> - CONNECTION_HASH_MAP_REVERSE_ITERATOR; - typedef ACE_LRU_Caching_Strategy<CONNECTION_HASH_MAP> - LRU; + ACE_Null_Mutex> + CONNECTION_HASH_MAP_REVERSE_ITERATOR; + typedef ACE_Svc_Caching_Strategy_Utility <REFCOUNTED_HASH_RECYCLABLE_ADDRESS, \ + ACE_Pair<Svc_Handler *, int>, \ + CONNECTION_HASH_MAP,int > + SVC_CACHING_STRATEGY_UTILITY; + typedef ACE_LRU_Caching_Strategy<REFCOUNTED_HASH_RECYCLABLE_ADDRESS,\ + ACE_Pair<Svc_Handler *, int>,\ + CONNECTION_HASH_MAP, int,\ + SVC_CACHING_STRATEGY_UTILITY > + LRU; typedef ACE_Cached_Connect_Strategy_Ex<Svc_Handler,ACE_SOCK_CONNECTOR, LRU, ACE_SYNCH_NULL_MUTEX> - CACHED_CONNECT_STRATEGY; + CACHED_CONNECT_STRATEGY; protected: virtual ~URL_Validation_Visitor (void); @@ -311,6 +320,7 @@ protected: STRAT_CONNECTOR *strat_connector_; }; + class URL_Download_Visitor : public URL_Visitor { // = TITLE @@ -366,5 +376,4 @@ private: T *t_; }; - #endif /* _URL_VISITOR_H */ |