#include <Default_Acceptor_Filter.h>
Inheritance diagram for TAO_Default_Acceptor_Filter:
Public Member Functions | |
TAO_Default_Acceptor_Filter (void) | |
virtual int | fill_profile (const TAO::ObjectKey &object_key, TAO_MProfile &mprofile, TAO_Acceptor **acceptors_begin, TAO_Acceptor **acceptors_end, CORBA::Short priority=TAO_INVALID_PRIORITY) |
Populate mprofile with all available endpoints. | |
int | encode_endpoints (TAO_MProfile &mprofile) |
Default strategy for populating mprofile: all available endpoints are included.
Definition at line 42 of file Default_Acceptor_Filter.h.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Default_Acceptor_Filter::TAO_Default_Acceptor_Filter | ( | void | ) |
int TAO_Default_Acceptor_Filter::encode_endpoints | ( | TAO_MProfile & | mprofile | ) | [virtual] |
Encodes the endpoints in the profiles into the TAO_TAG_ENDPOINTS tag component of profiles.
Implements TAO_Acceptor_Filter.
Definition at line 42 of file Default_Acceptor_Filter.cpp.
References TAO_MProfile::get_profile(), and TAO_MProfile::profile_count().
00043 { 00044 // if -ORBUseSharedProfile is set, there may be multiple endpoints 00045 // per profile, even without priority. 00046 for (CORBA::ULong i = 0; 00047 i < mprofile.profile_count (); 00048 ++i) 00049 { 00050 TAO_Profile *profile = mprofile.get_profile (i); 00051 if (profile->encode_alternate_endpoints () == -1) 00052 return -1; 00053 } 00054 00055 return 0; 00056 }
int TAO_Default_Acceptor_Filter::fill_profile | ( | const TAO::ObjectKey & | object_key, | |
TAO_MProfile & | mprofile, | |||
TAO_Acceptor ** | acceptors_begin, | |||
TAO_Acceptor ** | acceptors_end, | |||
CORBA::Short | priority = TAO_INVALID_PRIORITY | |||
) | [virtual] |
Populate mprofile with all available endpoints.
Implements TAO_Acceptor_Filter.
Definition at line 20 of file Default_Acceptor_Filter.cpp.
00025 { 00026 // Go through all the acceptors. 00027 for (TAO_Acceptor** acceptor = acceptors_begin; 00028 acceptor != acceptors_end; 00029 ++acceptor) 00030 { 00031 // Ask each acceptor to make a profile. 00032 if ((*acceptor)->create_profile (object_key, 00033 mprofile, 00034 priority) == -1) 00035 return -1; 00036 } 00037 00038 return 0; 00039 }