diff options
author | stanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-05 21:11:03 +0000 |
---|---|---|
committer | stanleyk <stanleyk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-02-05 21:11:03 +0000 |
commit | 5e030faf84086ab02059fcbcc3faed224bd57b95 (patch) | |
tree | 3a62df45ac6ccf599fb07cf6a03d672456ce2e3d /TAO/tao/Invocation_Retry_Params.h | |
parent | 9d296f7fa51116ff7040ecb2ad18612cd94b5fd1 (diff) | |
download | ATCD-5e030faf84086ab02059fcbcc3faed224bd57b95.tar.gz |
Merge in OCI_Reliability_Enhancements branch.
Diffstat (limited to 'TAO/tao/Invocation_Retry_Params.h')
-rw-r--r-- | TAO/tao/Invocation_Retry_Params.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/TAO/tao/Invocation_Retry_Params.h b/TAO/tao/Invocation_Retry_Params.h new file mode 100644 index 00000000000..659ad4f7655 --- /dev/null +++ b/TAO/tao/Invocation_Retry_Params.h @@ -0,0 +1,61 @@ +/* -*- C++ -*- $Id$ */ +//============================================================================= +/** + * @file Invocation_Retry_Params.h + * + * $Id$ + * + * @author Byron Harris (harrisb@ociweb.com) + */ +//============================================================================= + +#ifndef TAO_INVOCATION_RETRY_PARAMS_H +#define TAO_INVOCATION_RETRY_PARAMS_H + +#include "tao/orbconf.h" +#include "ace/Array_Map.h" + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace TAO +{ + /** + * @struct Invocation_Retry_Params + * + * @brief Contains the invocation retry parameters used when encountering + * CORBA exceptions. + * The parameters can be specified using either the Client_Strategy_Factory + * service given in the service configuration file or through the command line. + * Any command line parameter overrides the corresponding option in the service + * configurator file. + */ + struct Invocation_Retry_Params + { + Invocation_Retry_Params(); + + typedef ACE_Array_Map<int, int> exception_limit_map_type; + + /** + * The maximum number of retry attempts per exception type + * when exceptions are encountered. The profiles are + * cycled through during each attempt. + */ + exception_limit_map_type forward_on_exception_limit_; + + /** + * The maximum number of times to retry a an invocation + * if the the connection to the server is closed when + * trying to get a reply. + */ + int forward_on_reply_closed_limit_; + + /** + * The delay to use between cycles of base and forward profiles. + */ + ACE_Time_Value init_retry_delay_; + }; +} + +TAO_END_VERSIONED_NAMESPACE_DECL + +#endif /* TAO_INVOCATION_RETRY_PARAMS_H*/ |