diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h new file mode 100644 index 00000000000..8431950aff4 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h @@ -0,0 +1,68 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file LB_ClientComponent.h + * + * $Id$ + + * @author Ossama Othman <ossama@uci.edu> + */ +//============================================================================= + +#ifndef TAO_LB_CLIENTCOMPONENT_H +#define TAO_LB_CLIENTCOMPONENT_H + +#include /**/ "ace/pre.h" + +#include "orbsvcs/LoadBalancing/LoadBalancing_export.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "orbsvcs/LB_ORTC.h" + +#include "ace/Service_Object.h" +#include "ace/Service_Config.h" + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +/** + * @class TAO_LB_ClientComponent + * + * @brief Service_Object that can be used to add load balancer support + * to a CORBA-based client. + * + * CORBA applications wishing to transparently add load shedding support + * can load this object via the ACE_Service_Configurator (e.g. by + * listing it in a `svc.conf' file). + */ +class TAO_LoadBalancing_Export TAO_LB_ClientComponent + : public ACE_Service_Object +{ +public: + + /// Initializes object when dynamic linking occurs. + virtual int init (int argc, ACE_TCHAR *argv[]); + + /// Terminates object when dynamic unlinking occurs. + virtual int fini (void); + +protected: + + /// Register the LB_ClientComponent's ORBInitializer. + int register_orb_initializer (void); + +}; + +TAO_END_VERSIONED_NAMESPACE_DECL + +ACE_STATIC_SVC_DECLARE_EXPORT (TAO_LoadBalancing, TAO_LB_ClientComponent) +ACE_STATIC_SVC_REQUIRE (TAO_LB_ClientComponent) +ACE_FACTORY_DECLARE (TAO_LoadBalancing, TAO_LB_ClientComponent) + + +#include /**/ "ace/post.h" + +#endif /* TAO_LB_CLIENTCOMPONENT_H */ |