More tests update
[ACE_TAO.git] / TAO / tests / Collocated_Forwarding / test_i.h
blob847217953d8c51c423091a7b480a62b48d79c732
1 // -*- C++ -*-
2 #ifndef TEST_I_H
3 #define TEST_I_H
5 #include "testS.h"
7 /**
8 * @class test_i
10 * @brief Simple test class.
12 * This class implements the "test" interface used in this test.
14 class test_i : public virtual POA_Collocated_ForwardRequestTest::test
16 public:
18 /// Constructor.
19 test_i (CORBA::Short id,
20 bool direct,
21 CORBA::ORB_ptr orb);
23 /// A way to setup forwarding in case of direct collocation.
24 void forward (CORBA::Object_ptr to,
25 CORBA::ULong request_pass_count);
27 /// Return the number assigned to this object.
28 virtual CORBA::Short collocated_call (void);
30 private:
32 /// Id of this instance.
33 CORBA::Short id_;
35 /// An indication to throwing forward request exception.
36 bool direct_;
38 /// Pseudo-reference to the ORB.
39 CORBA::ORB_var orb_;
41 /// A place where to forward.
42 CORBA::Object_var to_;
44 /// How much requests to pass thru before forwarding.
45 CORBA::ULong request_pass_count_;
47 /// The number of requests intercepted by this interceptor.
48 CORBA::ULong request_count_;
51 #endif /* TEST_I_H */