Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_Default_Endpoint_Selector Class Reference

Default strategy for endpoint selection. More...

#include <Invocation_Endpoint_Selectors.h>

Inheritance diagram for TAO_Default_Endpoint_Selector:

Inheritance graph
[legend]
Collaboration diagram for TAO_Default_Endpoint_Selector:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Default_Endpoint_Selector (void)
 Constructor. More...

virtual ~TAO_Default_Endpoint_Selector (void)
 Destructor. More...

virtual void select_endpoint (TAO_GIOP_Invocation *invocation ACE_ENV_ARG_DECL)
 Select the endpoint and set <invocation>'s <profile_> and <endpoint_> data members accordingly. More...

virtual void forward (TAO_GIOP_Invocation *invocation, const TAO_MProfile &mprofile ACE_ENV_ARG_DECL)
 This method must be called if the invocation attempt on a selected endpoint resulted in location forward. More...

virtual void success (TAO_GIOP_Invocation *invocation)
 Update the state to indicate that the selected endpoint/profile were used successfully. More...

virtual void close_connection (TAO_GIOP_Invocation *invocation)
 Update the state to reflect that the connection being used for the invocation has been closed by the server. More...


Protected Methods

virtual int endpoint_from_profile (TAO_GIOP_Invocation *invocation ACE_ENV_ARG_DECL)
 This method selects an endpoint from the profile in the invocation object. More...


Detailed Description

Default strategy for endpoint selection.

This strategy is used when there are no policies set or when the only policy set is RTCORBA::PriorityModelPolicy and its value is RTCORBA::SERVER_DECLARED. The strategy is to try the first endpoint from the first profile in the IOR. If that doesn't work, try the next profile, and so on.


Constructor & Destructor Documentation

TAO_Default_Endpoint_Selector::TAO_Default_Endpoint_Selector void   
 

Constructor.

TAO_Default_Endpoint_Selector::~TAO_Default_Endpoint_Selector void    [virtual]
 

Destructor.


Member Function Documentation

void TAO_Default_Endpoint_Selector::close_connection TAO_GIOP_Invocation   invocation [virtual]
 

Update the state to reflect that the connection being used for the invocation has been closed by the server.

Reimplemented from TAO_Invocation_Endpoint_Selector.

int TAO_Default_Endpoint_Selector::endpoint_from_profile TAO_GIOP_Invocation *invocation    ACE_ENV_ARG_DECL [protected, virtual]
 

This method selects an endpoint from the profile in the invocation object.

void TAO_Default_Endpoint_Selector::forward TAO_GIOP_Invocation   invocation,
const TAO_MProfile &mprofile    ACE_ENV_ARG_DECL
[virtual]
 

This method must be called if the invocation attempt on a selected endpoint resulted in location forward.

This method performs the necessary state updates, so that next <select_endpoint> call picks a new endpoint.

Reimplemented from TAO_Invocation_Endpoint_Selector.

void TAO_Default_Endpoint_Selector::select_endpoint TAO_GIOP_Invocation *invocation    ACE_ENV_ARG_DECL [virtual]
 

Select the endpoint and set <invocation>'s <profile_> and <endpoint_> data members accordingly.

Reimplemented from TAO_Invocation_Endpoint_Selector.

void TAO_Default_Endpoint_Selector::success TAO_GIOP_Invocation   invocation [virtual]
 

Update the state to indicate that the selected endpoint/profile were used successfully.

Reimplemented from TAO_Invocation_Endpoint_Selector.


The documentation for this class was generated from the following files:
Generated on Thu Oct 10 18:31:03 2002 for TAO by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001