1 #ifndef ROUNDTRIP_HANDLER_H
2 #define ROUNDTRIP_HANDLER_H
3 #include /**/ "ace/pre.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
15 Roundtrip_Handler (int expected_callbacks
);
17 /// Return the number of pending callbacks
18 int pending_callbacks () const;
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
);
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 */