3 //=============================================================================
5 * @file Collocated_Invocation.h
7 * @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
9 //=============================================================================
11 #ifndef TAO_COLLOCATED_INVOCATION_H
12 #define TAO_COLLOCATED_INVOCATION_H
14 #include /**/ "ace/pre.h"
16 #include /**/ "tao/TAO_Export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/Collocation_Strategy.h"
23 #include "tao/Invocation_Base.h"
24 #include "tao/Exception.h"
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 class TAO_Operation_Details
;
33 class Profile_Transport_Resolver
;
35 class Collocation_Proxy_Broker
;
38 * @class Collocated_Invocation
40 * @brief Class for Collocated invocations
42 * @note Reliable oneways are not handled properly including use of
43 * interceptors. This class should technically serve as the base
44 * for all invocation types. But now, this is the only class that
45 * handles collocated invocations and that too in a brain dead way.
47 class TAO_Export Collocated_Invocation
: public Invocation_Base
50 /// Constructor used by TAO::Invocation_Adapter
52 * @param t The target on which invocation first started.
54 * @param et The effective target in which this invocation is now
57 * @param stub Stub for effective target @a et
59 * @param detail operation details of the invocation including
60 * the service context list
62 * @param response_expected flag to indicate whether the
63 * operation encapsulated by @a detail returns a response or not.
65 Collocated_Invocation (CORBA::Object_ptr t
,
68 TAO_Operation_Details
&detail
,
69 bool response_expected
= true);
71 /// Invocation on the collocated object mediated through this
74 * Practically this method is a place holder to do the
76 * - Call the start and end interception points on the client
79 * - Handle location forwards that could be thrown by the
83 Invocation_Status
invoke (Collocation_Strategy strat
);
86 Collocated_Invocation () = delete;
90 TAO_END_VERSIONED_NAMESPACE_DECL
92 #include /**/ "ace/post.h"
93 #endif /*TAO_COLLOCATED_INVOCATION_H*/