TAO  2.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
TAO_Default_Client_Strategy_Factory Class Reference

This is the "default" client strategy factor for TAO. It includes strategies that are configured through command-line options so that everything operates as if there were no dynamically-linkable strategies. More...

#include <default_client.h>

Inheritance diagram for TAO_Default_Client_Strategy_Factory:
Inheritance graph
Collaboration diagram for TAO_Default_Client_Strategy_Factory:
Collaboration graph

Public Member Functions

 TAO_Default_Client_Strategy_Factory (void)
 Constructor. More...
 
virtual ~TAO_Default_Client_Strategy_Factory (void)
 Destructor. More...
 
virtual int init (int argc, ACE_TCHAR *argv[])
 Dynamic linking hook. More...
 
int parse_args (int argc, ACE_TCHAR *argv[])
 Parse svc.conf arguments. More...
 
virtual
TAO_Transport_Mux_Strategy
create_transport_mux_strategy (TAO_Transport *transport)
 Create the correct client transport muxing strategy. More...
 
virtual ACE_Lockcreate_transport_mux_strategy_lock (void)
 Create the correct lock for request muxing strategy. More...
 
virtual int reply_dispatcher_table_size (void) const
 Return the size of the reply dispatcher table. More...
 
virtual int allow_callback (void)
 Does the client allow any form of callback? More...
 
virtual TAO_Wait_Strategycreate_wait_strategy (TAO_Transport *transport)
 Create the correct client wait_for_reply strategy. More...
 
virtual TAO_Connect_Strategycreate_connect_strategy (TAO_ORB_Core *)
 Create the correct client asynch_connect strategy. More...
 
virtual bool use_cleanup_options (void) const
 Cleanup options for wait strategy. More...
 
virtual Connect_Strategy connect_strategy (void) const
 Return the selected connection strategy option. More...
 
virtual const
TAO::Invocation_Retry_Params
invocation_retry_params (void) const
 
virtual Messaging::SyncScope sync_scope () const
 Return the value to be used as the default sync scope for the ORB. More...
 
- Public Member Functions inherited from TAO_Client_Strategy_Factory
virtual ~TAO_Client_Strategy_Factory (void)
 Destructor. More...
 

Protected Member Functions

void report_option_value_error (const ACE_TCHAR *option_name, const ACE_TCHAR *option_value)
 

Private Types

enum  Lock_Type { TAO_NULL_LOCK, TAO_THREAD_LOCK }
 
enum  Transport_Mux_Strategy { TAO_MUXED_TMS, TAO_EXCLUSIVE_TMS }
 
enum  Wait_Strategy { TAO_WAIT_ON_LEADER_FOLLOWER, TAO_WAIT_ON_REACTOR, TAO_WAIT_ON_READ, TAO_WAIT_ON_LF_NO_UPCALL }
 

Private Attributes

Transport_Mux_Strategy transport_mux_strategy_
 The client Request Mux Strategy. More...
 
Wait_Strategy wait_strategy_
 The wait-for-reply strategy. More...
 
Connect_Strategy connect_strategy_
 The connection initiation strategy. More...
 
int rd_table_size_
 Size of the reply dispatcher table. More...
 
Lock_Type muxed_strategy_lock_type_
 Type of lock for the muxed_strategy. More...
 
bool use_cleanup_options_
 Cleanupoptions for RW strategy. More...
 
TAO::Invocation_Retry_Params invocation_retry_params_
 Retry options when exceptions occur. More...
 
Messaging::SyncScope sync_scope_
 

Additional Inherited Members

- Public Types inherited from TAO_Client_Strategy_Factory
enum  Connect_Strategy { TAO_BLOCKED_CONNECT, TAO_REACTIVE_CONNECT, TAO_LEADER_FOLLOWER_CONNECT }
 

Detailed Description

This is the "default" client strategy factor for TAO. It includes strategies that are configured through command-line options so that everything operates as if there were no dynamically-linkable strategies.

Member Enumeration Documentation

Enumerator
TAO_NULL_LOCK 
TAO_THREAD_LOCK 
Enumerator
TAO_MUXED_TMS 
TAO_EXCLUSIVE_TMS 
Enumerator
TAO_WAIT_ON_LEADER_FOLLOWER 
TAO_WAIT_ON_REACTOR 
TAO_WAIT_ON_READ 
TAO_WAIT_ON_LF_NO_UPCALL 

Constructor & Destructor Documentation

TAO_Default_Client_Strategy_Factory::TAO_Default_Client_Strategy_Factory ( void  )

Constructor.

TAO_Default_Client_Strategy_Factory::~TAO_Default_Client_Strategy_Factory ( void  )
virtual

Destructor.

Member Function Documentation

int TAO_Default_Client_Strategy_Factory::allow_callback ( void  )
virtual

Does the client allow any form of callback?

Implements TAO_Client_Strategy_Factory.

TAO_Client_Strategy_Factory::Connect_Strategy TAO_Default_Client_Strategy_Factory::connect_strategy ( void  ) const
virtual

Return the selected connection strategy option.

Implements TAO_Client_Strategy_Factory.

TAO_Connect_Strategy * TAO_Default_Client_Strategy_Factory::create_connect_strategy ( TAO_ORB_Core )
virtual

Create the correct client asynch_connect strategy.

Implements TAO_Client_Strategy_Factory.

TAO_Transport_Mux_Strategy * TAO_Default_Client_Strategy_Factory::create_transport_mux_strategy ( TAO_Transport transport)
virtual

Create the correct client transport muxing strategy.

Implements TAO_Client_Strategy_Factory.

ACE_Lock * TAO_Default_Client_Strategy_Factory::create_transport_mux_strategy_lock ( void  )
virtual

Create the correct lock for request muxing strategy.

Implements TAO_Client_Strategy_Factory.

TAO_Wait_Strategy * TAO_Default_Client_Strategy_Factory::create_wait_strategy ( TAO_Transport transport)
virtual

Create the correct client wait_for_reply strategy.

Implements TAO_Client_Strategy_Factory.

int TAO_Default_Client_Strategy_Factory::init ( int  argc,
ACE_TCHAR argv[] 
)
virtual

Dynamic linking hook.

const TAO::Invocation_Retry_Params & TAO_Default_Client_Strategy_Factory::invocation_retry_params ( void  ) const
virtual

Return the parameters used to optionally retry invocation after an exception occurs.

Implements TAO_Client_Strategy_Factory.

int TAO_Default_Client_Strategy_Factory::parse_args ( int  argc,
ACE_TCHAR argv[] 
)

Parse svc.conf arguments.

int TAO_Default_Client_Strategy_Factory::reply_dispatcher_table_size ( void  ) const
virtual

Return the size of the reply dispatcher table.

Implements TAO_Client_Strategy_Factory.

void TAO_Default_Client_Strategy_Factory::report_option_value_error ( const ACE_TCHAR option_name,
const ACE_TCHAR option_value 
)
protected
Messaging::SyncScope TAO_Default_Client_Strategy_Factory::sync_scope ( ) const
virtual

Return the value to be used as the default sync scope for the ORB.

Implements TAO_Client_Strategy_Factory.

bool TAO_Default_Client_Strategy_Factory::use_cleanup_options ( void  ) const
virtual

Cleanup options for wait strategy.

Only applicable to RW wait strategy

Implements TAO_Client_Strategy_Factory.

Member Data Documentation

Connect_Strategy TAO_Default_Client_Strategy_Factory::connect_strategy_
private

The connection initiation strategy.

TAO::Invocation_Retry_Params TAO_Default_Client_Strategy_Factory::invocation_retry_params_
private

Retry options when exceptions occur.

Lock_Type TAO_Default_Client_Strategy_Factory::muxed_strategy_lock_type_
private

Type of lock for the muxed_strategy.

int TAO_Default_Client_Strategy_Factory::rd_table_size_
private

Size of the reply dispatcher table.

Messaging::SyncScope TAO_Default_Client_Strategy_Factory::sync_scope_
private

The default sync scope used with oneways when a policy does not override

Transport_Mux_Strategy TAO_Default_Client_Strategy_Factory::transport_mux_strategy_
private

The client Request Mux Strategy.

bool TAO_Default_Client_Strategy_Factory::use_cleanup_options_
private

Cleanupoptions for RW strategy.

Wait_Strategy TAO_Default_Client_Strategy_Factory::wait_strategy_
private

The wait-for-reply strategy.


The documentation for this class was generated from the following files: