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

TAO_Invocation_Endpoint_Selector Class Reference

Defines the interface for policy-based endpoint selection strategies. More...

#include <Invocation_Endpoint_Selectors.h>

Inheritance diagram for TAO_Invocation_Endpoint_Selector:

Inheritance graph
[legend]
List of all members.

Public Methods

 TAO_Invocation_Endpoint_Selector (void)
 Constructor. More...

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

virtual void select_endpoint (TAO_GIOP_Invocation *invocation ACE_ENV_ARG_DECL_WITH_DEFAULTS)=0
 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_WITH_DEFAULTS)=0
virtual void success (TAO_GIOP_Invocation *invocation)=0
 Update the state to indicate that the selected endpoint/profile were used successfully. More...

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


Detailed Description

Defines the interface for policy-based endpoint selection strategies.

Selects/reselects server endpoint for an Invocation. Different concrete strategies perform selection based on different policies. All endpoint selection strategies are stateless objects - any necessary state is stored in Invocation's <endpoint_selection_state_>.

Definition at line 44 of file Invocation_Endpoint_Selectors.h.


Constructor & Destructor Documentation

TAO_Invocation_Endpoint_Selector::TAO_Invocation_Endpoint_Selector void   
 

Constructor.

Definition at line 20 of file Invocation_Endpoint_Selectors.cpp.

00021 {
00022 }

TAO_Invocation_Endpoint_Selector::~TAO_Invocation_Endpoint_Selector void    [virtual]
 

Destructor.

Definition at line 24 of file Invocation_Endpoint_Selectors.cpp.

00025 {
00026 }


Member Function Documentation

virtual void TAO_Invocation_Endpoint_Selector::close_connection TAO_GIOP_Invocation   invocation [pure virtual]
 

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

Implemented in TAO_Default_Endpoint_Selector.

Referenced by TAO_GIOP_Invocation::close_connection.

virtual void TAO_Invocation_Endpoint_Selector::forward TAO_GIOP_Invocation   invocation,
const TAO_MProfile &mprofile    ACE_ENV_ARG_DECL_WITH_DEFAULTS
[pure 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.

Implemented in TAO_Default_Endpoint_Selector.

virtual void TAO_Invocation_Endpoint_Selector::select_endpoint TAO_GIOP_Invocation *invocation    ACE_ENV_ARG_DECL_WITH_DEFAULTS [pure virtual]
 

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

Implemented in TAO_Default_Endpoint_Selector.

virtual void TAO_Invocation_Endpoint_Selector::success TAO_GIOP_Invocation   invocation [pure virtual]
 

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

Implemented in TAO_Default_Endpoint_Selector.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:22:17 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002