Public Member Functions

TAO_Default_Acceptor_Filter Class Reference

Default Acceptor_Filter. More...

#include <Default_Acceptor_Filter.h>

Inheritance diagram for TAO_Default_Acceptor_Filter:
Inheritance graph
[legend]
Collaboration diagram for TAO_Default_Acceptor_Filter:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Default Acceptor_Filter.

Default strategy for populating mprofile: all available endpoints are included.

Definition at line 42 of file Default_Acceptor_Filter.h.


Constructor & Destructor Documentation

TAO_Default_Acceptor_Filter::TAO_Default_Acceptor_Filter ( void   ) 

Definition at line 15 of file Default_Acceptor_Filter.cpp.

{
}


Member Function Documentation

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.

{
  // if -ORBUseSharedProfile is set, there may be multiple endpoints
  // per profile, even without priority.
  for (CORBA::ULong i = 0;
       i < mprofile.profile_count ();
       ++i)
    {
      TAO_Profile *profile = mprofile.get_profile (i);
      if (profile->encode_alternate_endpoints () == -1)
        return -1;
    }

  return 0;
}

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.

Reimplemented in TAO_Endpoint_Acceptor_Filter.

Definition at line 20 of file Default_Acceptor_Filter.cpp.

{
  // Go through all the acceptors.
  for (TAO_Acceptor** acceptor = acceptors_begin;
       acceptor != acceptors_end;
       ++acceptor)
    {
      // Ask each acceptor to make a profile.
      if ((*acceptor)->create_profile (object_key,
                                       mprofile,
                                       priority) == -1)
        return -1;
    }

  return 0;
}


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines