diff options
Diffstat (limited to 'TAO/tao/RTPortableServer/RT_Acceptor_Filters.h')
-rw-r--r-- | TAO/tao/RTPortableServer/RT_Acceptor_Filters.h | 72 |
1 files changed, 9 insertions, 63 deletions
diff --git a/TAO/tao/RTPortableServer/RT_Acceptor_Filters.h b/TAO/tao/RTPortableServer/RT_Acceptor_Filters.h index 41c4722c4e4..48377781668 100644 --- a/TAO/tao/RTPortableServer/RT_Acceptor_Filters.h +++ b/TAO/tao/RTPortableServer/RT_Acceptor_Filters.h @@ -55,19 +55,16 @@ class TAO_RTPortableServer_Export TAO_Server_Protocol_Acceptor_Filter : public: TAO_Server_Protocol_Acceptor_Filter (RTCORBA::ProtocolList &protocols); - virtual int fill_mprofile (const TAO_ObjectKey &object_key, - TAO_MProfile &mprofile, - TAO_Acceptor **acceptors_begin, - TAO_Acceptor **acceptors_end); - // Populate <mprofile> based on what's in <protocols_>. + /// Populate <mprofile> based on what's in <protocols_>. + int fill_profile (const TAO_ObjectKey &object_key, + TAO_MProfile &mprofile, + TAO_Acceptor **acceptors_begin, + TAO_Acceptor **acceptors_end, + CORBA::Short priority); - virtual int validate_acceptor (TAO_Acceptor *acceptor); - // Template method pattern. This method is used by <fill_mprofile> - // to decide whether <acceptor> endpoint should be added to - // mprofile or not. Returns true or false. - // This implementation always returns true. Subclasses can override - // to specify additional conditions that must be met by an - // <acceptor> for inclusion into mprofile. + /// Encodes the endpoints in the profiles into the TAO_TAG_ENDPOINTS + /// tag component of profiles. + int encode_endpoints (TAO_MProfile &mprofile); private: RTCORBA::ProtocolList &protocols_; @@ -75,57 +72,6 @@ private: // selection. }; -class TAO_RTPortableServer_Export TAO_Priority_Acceptor_Filter : - public TAO_Server_Protocol_Acceptor_Filter -{ - // = TITLE - // RTCORBA::ServerProtocolPolicy & RTCORBA::SERVER_DECLARED - // priority model Acceptor_Filter. - // - // = DESCRIPTION - // Populates mprofile with endpoints that match - // RTCORBA::SERVER_DECLARED priority and - // RTCORBA::ServerProtocolPolicy of the POA. - // -public: - TAO_Priority_Acceptor_Filter (RTCORBA::ProtocolList &protocols, - CORBA::Short priority); - // Constructor. - - virtual int validate_acceptor (TAO_Acceptor *acceptor); - // Returns true if <acceptor>'s priority equals to <priority_>. - -private: - CORBA::Short priority_; - // SERVER_DECLARED priority of the object. -}; - -class TAO_RTPortableServer_Export TAO_Bands_Acceptor_Filter : - public TAO_Server_Protocol_Acceptor_Filter -{ - // = TITLE - // RTCORBA::PriorityBandedConnectionPolicy & - // RTCORBA::ServerProtocolPolicy Acceptor_Filter. - // - // = DESCRIPTION - // Populates mprofile with endpoints that match - // RTCORBA::PriorityBandedConnectionPolicy and - // RTCORBA::ServerProtocolPolicy of the POA. - // -public: - TAO_Bands_Acceptor_Filter (RTCORBA::ProtocolList &protocols, - RTCORBA::PriorityBands &bands); - // Constructor. - - virtual int validate_acceptor (TAO_Acceptor *acceptor); - // Returns true if <acceptor>'s priority falls into the range of any - // of the <priority_bands_>. - -private: - RTCORBA::PriorityBands &priority_bands_; - // The value of POA's PriorityBandedConnectionPolicy. -}; - #if defined (__ACE_INLINE__) #include "RT_Acceptor_Filters.i" #endif /* __ACE_INLINE__ */ |