diff options
Diffstat (limited to 'TAO/tao/Messaging_Policy_i.h')
-rw-r--r-- | TAO/tao/Messaging_Policy_i.h | 137 |
1 files changed, 0 insertions, 137 deletions
diff --git a/TAO/tao/Messaging_Policy_i.h b/TAO/tao/Messaging_Policy_i.h deleted file mode 100644 index d85a121eb93..00000000000 --- a/TAO/tao/Messaging_Policy_i.h +++ /dev/null @@ -1,137 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// TAO -// -// = DESCRIPTION -// Implementation classes for the Messaging related policies -// -// = FILENAME -// Messaging_Policy_i.h -// -// = AUTHOR -// Carlos O'Ryan (coryan@cs.wustl.edu) -// -// ============================================================================ - -#ifndef TAO_MESSAGING_POLICY_I_H -#define TAO_MESSAGING_POLICY_I_H - -#include "tao/orbconf.h" - -#if defined (TAO_HAS_CORBA_MESSAGING) - -#include "MessagingS.h" - -#if defined(_MSC_VER) -#pragma warning(disable:4250) -#endif /* _MSC_VER */ - -class TAO_Export TAO_RelativeRoundtripTimeoutPolicy_i : public virtual PortableServer::RefCountServantBase, - public virtual POA_Messaging::RelativeRoundtripTimeoutPolicy - -{ - // = TITLE - // Messaging::RelativeRoundtripTimeoutPolicy implementation - // - // = DESCRIPTION - // This policy controls the total (round-trip) timeout time for a - // request. - // -public: - TAO_RelativeRoundtripTimeoutPolicy_i (PortableServer::POA_ptr poa, - const TimeBase::TimeT& relative_expiry); - // Constructor - - static CORBA::Policy_ptr create ( - PortableServer::POA_ptr poa, - const CORBA::Any& val, - CORBA::Environment &ACE_TRY_ENV = - TAO_default_environment () - ); - // Helper method for the implementation of CORBA::ORB::create_policy - - // = The Messaging::RelativeRoundtripTimeoutPolicy methods - virtual TimeBase::TimeT relative_expiry ( - CORBA::Environment &ACE_TRY_ENV = - CORBA::Environment::default_environment () - ); - virtual CORBA::PolicyType policy_type ( - CORBA_Environment &ACE_TRY_ENV = TAO_default_environment () - ); - virtual CORBA::Policy_ptr copy ( - CORBA_Environment &ACE_TRY_ENV = TAO_default_environment () - ); - virtual void destroy ( - CORBA_Environment &ACE_TRY_ENV = TAO_default_environment () - ); - virtual PortableServer::POA_ptr _default_POA ( - CORBA_Environment &ACE_TRY_ENV = TAO_default_environment () - ); - -private: - PortableServer::POA_var poa_; - // The default poa - - TimeBase::TimeT relative_expiry_; - // The attribute -}; - -//////////////////////////////////////////////////////////////////////////////// - -class TAO_Export TAO_Sync_Scope_Policy : public virtual PortableServer::RefCountServantBase, - public virtual POA_Messaging::SyncScopePolicy - -{ - // = TITLE - // Messaging::SyncScopePolicy implementation. - // - // = DESCRIPTION - // This policy controls the sync strategy used by the ORB to - // transport requests. - // -public: - TAO_Sync_Scope_Policy (Messaging::SyncScope synchronization, - PortableServer::POA_ptr poa); - // Constructor. - - static CORBA::Policy_ptr create (PortableServer::POA_ptr poa, - const CORBA::Any& val, - CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ()); - // Helper method for the implementation of - // CORBA::ORB::create_policy. - - // = The Messaging::SyncScopePolicy methods. - - virtual Messaging::SyncScope synchronization (CORBA::Environment &ACE_TRY_ENV = CORBA::Environment::default_environment ()); - - virtual CORBA::PolicyType policy_type (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()); - - virtual CORBA::Policy_ptr copy (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()); - - virtual void destroy (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()); - - virtual PortableServer::POA_ptr _default_POA (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ()); - -private: - Messaging::SyncScope synchronization_; - // The attribute - - PortableServer::POA_var poa_; - // The default poa. -}; - -#if defined (__ACE_INLINE__) -#include "tao/Messaging_Policy_i.i" -#endif /* __ACE_INLINE__ */ - -#if defined(_MSC_VER) -#pragma warning(default:4250) -#endif /* _MSC_VER */ - -#endif /* TAO_HAS_CORBA_MESSAGING */ - -#endif /* TAO_MESSAGING_POLICY_I_H */ |