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

TAO_Wait_Strategy Class Reference

Strategy for waiting for the reply. More...

#include <Wait_Strategy.h>

Inheritance diagram for TAO_Wait_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO_Wait_Strategy:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Wait_Strategy (TAO_Transport *transport)
 Constructor. More...

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

virtual int sending_request (TAO_ORB_Core *orb_core, int two_way)
virtual int wait (ACE_Time_Value *max_wait_time, TAO_Synch_Reply_Dispatcher &rd)=0
 Base class virtual method. Wait till the <reply_received> flag is true or the time expires. More...

virtual int register_handler (void)=0
 Register the handler needs with the reactor provided that it makes sense for the strategy. More...

virtual int non_blocking (void)=0
 Returns a value to indicate whether the transport needs to set the socket on which it is waiting to non-blocking mode or not. More...

int is_registered (void)
 Get/Set method for the flag. More...

void is_registered (int flag)

Protected Attributes

TAO_Transporttransport_
 Transport object. More...

int is_registered_
 Flag to indicate whether the service handler that created the above transport has been registered with the reactor or not. The default is 0. More...


Detailed Description

Strategy for waiting for the reply.

Definition at line 34 of file Wait_Strategy.h.


Constructor & Destructor Documentation

TAO_Wait_Strategy::TAO_Wait_Strategy TAO_Transport   transport
 

Constructor.

Definition at line 13 of file Wait_Strategy.cpp.

00014   : transport_ (transport),
00015     is_registered_ (0)
00016 
00017 {
00018 }

TAO_Wait_Strategy::~TAO_Wait_Strategy void    [virtual]
 

Destructor.

Definition at line 21 of file Wait_Strategy.cpp.

00022 {
00023 }


Member Function Documentation

ACE_INLINE void TAO_Wait_Strategy::is_registered int    flag
 

Definition at line 10 of file Wait_Strategy.inl.

References is_registered_.

00011 {
00012   this->is_registered_ = flag;
00013 }

ACE_INLINE int TAO_Wait_Strategy::is_registered void   
 

Get/Set method for the flag.

Definition at line 4 of file Wait_Strategy.inl.

References is_registered_.

Referenced by TAO_Connection_Handler::close_connection_eh, TAO_Transport::notify_reactor, TAO_Transport::provide_handle, and TAO_IIOP_Transport::register_handler_i.

00005 {
00006   return this->is_registered_;
00007 }

virtual int TAO_Wait_Strategy::non_blocking void    [pure virtual]
 

Returns a value to indicate whether the transport needs to set the socket on which it is waiting to non-blocking mode or not.

Implemented in TAO_Wait_On_Leader_Follower.

Referenced by TAO_Transport::close_connection_shared, and TAO_IIOP_Connection_Handler::open.

virtual int TAO_Wait_Strategy::register_handler void    [pure virtual]
 

Register the handler needs with the reactor provided that it makes sense for the strategy.

Implemented in TAO_Wait_On_Leader_Follower.

Referenced by TAO_IIOP_Connector::make_connection.

int TAO_Wait_Strategy::sending_request TAO_ORB_Core   orb_core,
int    two_way
[virtual]
 

The user is going to send a request, prepare any internal variables because the reply may arrive *before* the user calls wait.

Reimplemented in TAO_Wait_On_Leader_Follower.

Definition at line 26 of file Wait_Strategy.cpp.

Referenced by TAO_IIOP_Transport::send_request, and TAO_Wait_On_Leader_Follower::sending_request.

00028 {
00029   return 0;
00030 }

virtual int TAO_Wait_Strategy::wait ACE_Time_Value   max_wait_time,
TAO_Synch_Reply_Dispatcher   rd
[pure virtual]
 

Base class virtual method. Wait till the <reply_received> flag is true or the time expires.

Implemented in TAO_Wait_On_Leader_Follower.


Member Data Documentation

int TAO_Wait_Strategy::is_registered_ [protected]
 

Flag to indicate whether the service handler that created the above transport has been registered with the reactor or not. The default is 0.

Definition at line 76 of file Wait_Strategy.h.

Referenced by is_registered, TAO_Wait_On_Reactor::register_handler, TAO_Wait_On_Leader_Follower::register_handler, and TAO_Wait_On_Leader_Follower::sending_request.

TAO_Transport* TAO_Wait_Strategy::transport_ [protected]
 

Transport object.

Definition at line 71 of file Wait_Strategy.h.

Referenced by TAO_Wait_On_Reactor::register_handler, TAO_Wait_On_Leader_Follower::register_handler, TAO_Wait_On_Leader_Follower::sending_request, TAO_Wait_On_Read::wait, TAO_Wait_On_Reactor::wait, and TAO_Wait_On_Leader_Follower::wait.


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