diff options
author | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-25 23:12:55 +0000 |
---|---|---|
committer | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-25 23:12:55 +0000 |
commit | ac8c2404e45fc4e83e68bffd4a4f0764dcc37a69 (patch) | |
tree | 549ba08bfc4495ea22b48139ef0551f210b768cf | |
parent | f1c9fad9476783436e2bf6939044b4563c0220cc (diff) | |
download | ATCD-ac8c2404e45fc4e83e68bffd4a4f0764dcc37a69.tar.gz |
refactoring protocols hooks
-rw-r--r-- | TAO/tao/Default_Policy_Protocols_Hooks.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/TAO/tao/Default_Policy_Protocols_Hooks.h b/TAO/tao/Default_Policy_Protocols_Hooks.h new file mode 100644 index 00000000000..1dfe536a514 --- /dev/null +++ b/TAO/tao/Default_Policy_Protocols_Hooks.h @@ -0,0 +1,72 @@ +// -*- C++ -*- + +// =================================================================== +/** + * @file Default_Policy_Protocols_Hooks.h + * + * $Id$ + * + * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu> + * Johnny Willemsen <jwillemsen@remedy.nl> + */ +// =================================================================== + +#ifndef TAO_DEFAULT_POLICY_PROTOCOLS_HOOKS_H +#define TAO_DEFAULT_POLICY_PROTOCOLS_HOOKS_H + +#include /**/ "ace/pre.h" +#include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/Policy_Protocols_Hooks.h" + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +class TAO_POA; + +class TAO_Export TAO_Default_Policy_Protocols_Hooks + : public TAO_Policy_Protocols_Hooks +{ +public: + + /// destructor + virtual ~TAO_Default_Policy_Protocols_Hooks (void); + + CORBA::Long get_dscp_codepoint (void); + + void set_dscp_codepoint (CORBA::Long &dscp_codepoint + ACE_ENV_ARG_DECL); + + void rt_service_context (TAO_Stub *stub, + TAO_Service_Context &service_context, + CORBA::Boolean restart + ACE_ENV_ARG_DECL); + + void add_rt_service_context_hook (TAO_Service_Context &service_context, + CORBA::Policy *model_policy, + CORBA::Short &client_priority + ACE_ENV_ARG_DECL); + + void get_selector_hook (CORBA::Policy *model_policy, + CORBA::Boolean + &is_client_propagated, + CORBA::Short &server_priority); + + void get_selector_bands_policy_hook (CORBA::Policy *bands_policy, + CORBA::Short p, + CORBA::Short &min_priority, + CORBA::Short &max_priority, + int &in_range); + +}; + +TAO_END_VERSIONED_NAMESPACE_DECL + +ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Policy_Protocols_Hooks) +ACE_FACTORY_DECLARE (TAO, TAO_Default_Policy_Protocols_Hooks) + +#include /**/ "ace/post.h" +#endif /* TAO_DEFAULT_POLICY_PROTOCOLS_HOOKS_H */ |