3 //=============================================================================
5 * @file Current_Test_Impl.h
7 * Implementation header for the "test" IDL interface for the
8 * TAO::TransportCurrent test.
10 * @author Iliyan Jeliazkov <iliyan@ociweb.com>
12 //=============================================================================
14 #ifndef CURRENT_TEST_IMPL_H
15 #define CURRENT_TEST_IMPL_H
17 #include "Current_TestS.h"
18 #include "tao/TransportCurrent/TCC.h"
21 * @class Current_Test_Impl
23 * @brief Simple test class.
25 * This class implements the "test" interface used in this test.
27 class Current_Test_Impl
: public virtual POA_Test::Transport::CurrentTest
31 Current_Test_Impl (CORBA::ORB_ptr orb
, PortableServer::POA_ptr poa
, int do_collocated_calls
= 1);
34 ~Current_Test_Impl ();
36 /// Main servant test method.
37 virtual void invoked_by_client ();
39 /// No-op method used so that a client request interceptor will be
40 /// invoked when invoking this method from the above invoke_me()
41 /// method. Say that 10 times fast. :-)
42 virtual void invoked_during_upcall ();
45 virtual void shutdown ();
47 // A self-test for coherency
48 virtual ::CORBA::Long
self_test ();
51 /// Reports if unexpected errors have been encountered for the
52 /// lifetime of the instance
53 bool is_successful () const;
56 void test_transport_current ();
58 /// Main servant test method.
59 void invoked_by_client_i ();
62 /// Pseudo-reference to the ORB.
65 /// Pseudo-reference to the POA (cache)
66 PortableServer::POA_var poa_
;
68 /// To do or not to do ...
69 int do_collocated_calls_
;
72 #endif /* CURRENT_TEST_IMPL_H */