2 //=============================================================================
6 * @author Carlos O'Ryan
8 //=============================================================================
11 #ifndef TAO_FAILURE_TEST_I_H
12 #define TAO_FAILURE_TEST_I_H
17 : public virtual POA_Callback
20 // A callback object to shutdown the "client"
23 // To test that the server can tolerate client crashes the server
24 // receives a callback object.
28 Callback_i (CORBA::ORB_ptr orb
);
30 /// The callback method
31 void shutdown (CORBA::Boolean is_clean
);
39 * @class Simple_Server_i
41 * @brief Simpler Server implementation
43 * Implements the Simple_Server interface in test.idl
45 class Simple_Server_i
: public POA_Simple_Server
49 Simple_Server_i (CORBA::ORB_ptr orb
);
51 // = The Simple_Server methods.
52 CORBA::Long
test_method (CORBA::Boolean do_callback
,
53 CORBA::Boolean is_clean
,
54 Callback_ptr callback
);
56 void shutdown_now (CORBA::Boolean is_clean
);
68 * @brief Another implementation of the simple server...
70 * Implements the Simple_Server interface in test.idl
72 class Middle_i
: public virtual POA_Simple_Server
76 Middle_i (CORBA::ORB_ptr orb
,
77 Simple_Server_ptr server
);
79 // = The Simple_Server methods.
80 CORBA::Long
test_method (CORBA::Boolean do_callback
,
81 CORBA::Boolean is_clean
,
82 Callback_ptr callback
);
84 void shutdown_now (CORBA::Boolean is_clean
);
93 Simple_Server_var server_
;
96 #if defined(__ACE_INLINE__)
98 #endif /* __ACE_INLINE__ */
100 #endif /* TAO_FAILURE_TEST_I_H */