Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / performance-tests / Latency / AMI / Roundtrip_Handler.h
blob40891eaa46efc5e783a11db42ca07fb6e0fc77b6
1 #ifndef ROUNDTRIP_HANDLER_H
2 #define ROUNDTRIP_HANDLER_H
3 #include /**/ "ace/pre.h"
5 #include "TestS.h"
6 #include "ace/Basic_Stats.h"
7 #include "ace/High_Res_Timer.h"
9 /// Implement the Test::Roundtrip interface
10 class Roundtrip_Handler
11 : public virtual POA_Test::AMI_RoundtripHandler
13 public:
14 /// Constructor
15 Roundtrip_Handler (int expected_callbacks);
17 /// Return the number of pending callbacks
18 int pending_callbacks () const;
20 /// Dump the results
21 void dump_results (ACE_High_Res_Timer::global_scale_factor_type gsf);
23 // = The skeleton methods
24 virtual void test_method (Test::Timestamp send_time);
25 virtual void test_method_excep (::Messaging::ExceptionHolder *holder);
27 virtual void shutdown ();
28 virtual void shutdown_excep (::Messaging::ExceptionHolder *holder);
30 private:
31 /// The number of callbacks not received yet
32 int pending_callbacks_;
34 /// Collect the latency results
35 ACE_Basic_Stats latency_stats_;
38 #include /**/ "ace/post.h"
39 #endif /* ROUNDTRIP_H */