~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- C++ -*-
2
 
 
3
 
//=============================================================================
4
 
/**
5
 
 *  @file LB_MemberLocator.h
6
 
 *
7
 
 *  LB_MemberLocator.h,v 1.2 2003/07/21 23:51:31 dhinton Exp
8
 
 *
9
 
 *  @author Ossama Othman <ossama@uci.edu>
10
 
 */
11
 
//=============================================================================
12
 
 
13
 
 
14
 
#ifndef TAO_LB_MEMBER_LOCATOR_H
15
 
#define TAO_LB_MEMBER_LOCATOR_H
16
 
 
17
 
#include /**/ "ace/pre.h"
18
 
 
19
 
#include "ace/config-all.h"
20
 
 
21
 
# if !defined (ACE_LACKS_PRAGMA_ONCE)
22
 
#   pragma once
23
 
# endif /* ACE_LACKS_PRAGMA_ONCE */
24
 
 
25
 
#include "tao/PortableServer/PortableServerC.h"
26
 
#include "tao/LocalObject.h"
27
 
 
28
 
// Forward declarations.
29
 
class TAO_LB_LoadManager;
30
 
 
31
 
 
32
 
/**
33
 
 * @class TAO_LB_MemberLocator
34
 
 *
35
 
 * @brief ServantLocator implementation for the Load Balancer.
36
 
 *
37
 
 * This is a Servant Locator implementation that forwards requests to
38
 
 * a member returned by the Load Balancer.
39
 
 */
40
 
class TAO_LB_MemberLocator
41
 
  : public virtual PortableServer::ServantLocator,
42
 
    public virtual TAO_Local_RefCounted_Object
43
 
{
44
 
public:
45
 
 
46
 
  /// Constructor
47
 
  TAO_LB_MemberLocator (TAO_LB_LoadManager * load_balancer);
48
 
 
49
 
  /**
50
 
   * @name The PortableServer::ServantLocator methods.
51
 
   *
52
 
   * Methods required by the PortableServer::ServantLocator
53
 
   * interface.
54
 
   */
55
 
  //@{
56
 
 
57
 
  /// Clients requests are forwarded via the
58
 
  /// PortableServer::ForwardRequest exception thrown in this method.
59
 
  virtual PortableServer::Servant preinvoke (
60
 
      const PortableServer::ObjectId & oid,
61
 
      PortableServer::POA_ptr adapter,
62
 
      const char * operation,
63
 
      PortableServer::ServantLocator::Cookie & the_cookie
64
 
      ACE_ENV_ARG_DECL)
65
 
    ACE_THROW_SPEC ((CORBA::SystemException,
66
 
                     PortableServer::ForwardRequest));
67
 
 
68
 
  /// This method is no-op in this ServantLocator implementation.
69
 
  virtual void postinvoke (
70
 
      const PortableServer::ObjectId &oid,
71
 
      PortableServer::POA_ptr adapter,
72
 
      const char * operation,
73
 
      PortableServer::ServantLocator::Cookie the_cookie,
74
 
      PortableServer::Servant the_servant
75
 
      ACE_ENV_ARG_DECL)
76
 
    ACE_THROW_SPEC ((CORBA::SystemException));
77
 
 
78
 
  //@}
79
 
 
80
 
private:
81
 
 
82
 
  /// The load balancer/manager implementation.
83
 
  TAO_LB_LoadManager * load_manager_;
84
 
 
85
 
};
86
 
 
87
 
#include /**/ "ace/post.h"
88
 
 
89
 
#endif  /* TAO_LB_MEMBER_LOCATOR_H */