diff options
Diffstat (limited to 'ACE/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h')
-rw-r--r-- | ACE/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h b/ACE/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h new file mode 100644 index 00000000000..9d7f33e9ce6 --- /dev/null +++ b/ACE/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h @@ -0,0 +1,69 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file PG_Servant_Dispatcher.h + * + * $Id$ + * + * @author Johnny Willemsen <jwillemsen@remedy.nl> + */ +//============================================================================= + +#ifndef TAO_PG_SERVANT_DISPATCHER_H +#define TAO_PG_SERVANT_DISPATCHER_H +#include /**/ "ace/pre.h" + +#include "orbsvcs/PortableGroup/portablegroup_export.h" +#include "tao/PortableServer/Servant_Dispatcher.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +/** + * @class TAO_PG_Servant_Dispatcher + * + * @brief Concrete instantiation of the Servant_Dispatcher strategy. + * + * This class just calls _dispatch on the servant_upcall. No extra + * processing is done or needed. + * + */ +class TAO_PortableGroup_Export TAO_PG_Servant_Dispatcher + : public TAO_Servant_Dispatcher +{ +public: + virtual ~TAO_PG_Servant_Dispatcher (void); + + /// Pre_invoke remote request. + void pre_invoke_remote_request (TAO_Root_POA &poa, + CORBA::Short servant_priority, + TAO_ServerRequest &req, + TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &pre_invoke_state); + + /// Pre_invoke collocated request. + void pre_invoke_collocated_request (TAO_Root_POA &poa, + CORBA::Short servant_priority, + TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &pre_invoke_state); + + /// Post_invoke request. + void post_invoke (TAO_Root_POA &poa, + TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &pre_invoke_state); + + /// Factory method for creating new POA's. + TAO_Root_POA *create_Root_POA (const ACE_CString &name, + PortableServer::POAManager_ptr poa_manager, + const TAO_POA_Policy_Set &policies, + ACE_Lock &lock, + TAO_SYNCH_MUTEX &thread_lock, + TAO_ORB_Core &orb_core, + TAO_Object_Adapter *object_adapter); +}; + +TAO_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" +#endif /* TAO_PG_SERVANT_DISPATCHER_H */ |