3 //=============================================================================
5 * @file ORBInitializer.h
7 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
9 //=============================================================================
12 #ifndef ORB_INITIALIZER_H
13 #define ORB_INITIALIZER_H
15 #include /**/ "ace/pre.h"
17 #include "orbsvcs/LoadBalancing/LB_LoadAlert.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/LocalObject.h"
24 #include "tao/PI/PI.h"
26 // This is to remove "inherits via dominance" warnings from MSVC.
27 // MSVC is being a little too paranoid.
30 #pragma warning(disable:4250)
33 class ServerRequestInterceptor
;
36 * @class ORBInitializer
38 * @brief ORBInitializer
43 : public virtual PortableInterceptor::ORBInitializer
,
44 public virtual ::CORBA::LocalObject
51 * @name PortableInterceptor::ORBInitializer Methods
53 * Methods required by the PortableInterceptor::ORBInitializer
57 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
);
59 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
);
62 /// Return a reference to the LoadAlert object.
63 TAO_LB_LoadAlert
& load_alert ();
65 ServerRequestInterceptor
* interceptor () const;
68 /// The CosLoadBalancing::LoadAlert servant to be used at this
71 * This is the servant supplied by TAO's Load Balancer. It is
72 * used out of convencience.
74 TAO_LB_LoadAlert load_alert_
;
76 ServerRequestInterceptor
* interceptor_
;
84 #include /**/ "ace/post.h"
86 #endif /* ORB_INITIALIZER_H */