diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-12-12 22:01:31 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-12-12 22:01:31 +0000 |
commit | dc95ec1bd60cb55f9740d7f1580a50f516d4689c (patch) | |
tree | 78b678cf9f96a4fd1195161f8f0c9436e0f01fe9 /TAO/tao/params.h | |
parent | 9128442842d590955c6b1dfd7a56e7b4bc18b042 (diff) | |
download | ATCD-dc95ec1bd60cb55f9740d7f1580a50f516d4689c.tar.gz |
ChangeLogTag:Sun Dec 12 15:32:27 1999 Ossama Othman <othman@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/params.h')
-rw-r--r-- | TAO/tao/params.h | 62 |
1 files changed, 8 insertions, 54 deletions
diff --git a/TAO/tao/params.h b/TAO/tao/params.h index 02b67e32e83..aa1821ae967 100644 --- a/TAO/tao/params.h +++ b/TAO/tao/params.h @@ -38,57 +38,17 @@ class TAO_IOR_LookupTable; // #define TAO_LOCAL_INLINE ACE_INLINE // #endif /* ! __ACE_INLINE__ */ -typedef ACE_Unbounded_Set<ACE_CString> TAO_EndpointSet; -typedef ACE_Unbounded_Set_Iterator<ACE_CString> TAO_EndpointSetIterator; -// @@ Using an ACE_Unbounded_Queue to contain the preconnects may not -// be the best container to use. However, it will only be used -// during client side initialization. Also, a template +// @@ Using an ACE_Unbounded_Queue to contain the endpoints and +// preconnects may not be the best container to use. However, it +// will only be used during ORB bootstrapping. Also, a template // instantiation of ACE_Unbounded_Queue<ACE_CString> already exists // in ACE so we do not have to worry about increasing TAO's // footprint by using this container. -typedef ACE_Unbounded_Queue<ACE_CString> TAO_PreconnectSet; -typedef ACE_Unbounded_Queue_Iterator<ACE_CString> TAO_PreconnectSetIterator; +typedef ACE_Unbounded_Queue<ACE_CString> TAO_EndpointSet; +typedef ACE_Unbounded_Queue_Iterator<ACE_CString> TAO_EndpointSetIterator; // ------------------------------------------------------------------- -// The following utility classes are used to insert endpoints and -// preconnects into their corresponding containers, but at the same -// time allow the same parsing code to be used for endpoints and -// preconnects. - -// Base class that provides interface for insertion of -class TAO_Base_Endpoint_Insertion_Strategy -{ -public: - virtual int insert (const ACE_CString &endpoint) = 0; -}; - -// Utility class to insert endpoints into endpoint container. -class TAO_Endpoint_Insertion_Strategy - : public TAO_Base_Endpoint_Insertion_Strategy -{ -public: - TAO_Endpoint_Insertion_Strategy (TAO_EndpointSet &endpoint_set); - - virtual int insert (const ACE_CString &endpoint); - -private: - TAO_EndpointSet &endpoints_; -}; - -// Utility class to insert preconnects into preconnect container. -class TAO_Preconnect_Insertion_Strategy - : public TAO_Base_Endpoint_Insertion_Strategy -{ -public: - TAO_Preconnect_Insertion_Strategy (TAO_PreconnectSet &preconnect_set); - - virtual int insert (const ACE_CString &preconnect); - -private: - TAO_PreconnectSet &preconnects_; -}; -// ------------------------------------------------------------------- class TAO_Export TAO_ORB_Parameters // = TITLE @@ -110,7 +70,7 @@ public: // Destructor. int preconnects (ACE_CString &preconnects); - TAO_PreconnectSet &preconnects (void); + TAO_EndpointSet &preconnects (void); void add_preconnect (ACE_CString &preconnect); // Specifies the endpoints to pre-establish connections on. @@ -194,21 +154,15 @@ private: // All preconnect or endpoint strings should be of the above form(s). int parse_endpoints (ACE_CString &endpoints, - TAO_Base_Endpoint_Insertion_Strategy &endpoints_list); + TAO_EndpointSet &endpoints_list); - TAO_PreconnectSet preconnects_list_; + TAO_EndpointSet preconnects_list_; // List of endpoints used to pre-establish connections. - TAO_Preconnect_Insertion_Strategy preconnect_insertion_strategy_; - // Strategy used to insert endpoints into the endpoint container. - TAO_EndpointSet endpoints_list_; // List of endpoints this server is willing to accept requests // on. - TAO_Endpoint_Insertion_Strategy endpoint_insertion_strategy_; - // Strategy used to insert endpoints into the endpoint container. - CORBA::UShort service_port_[NO_OF_MCAST_SERVICES]; // Port numbers of the configured services. |