3 #include /**/ "ace/pre.h"
7 #include "ace/Basic_Stats.h"
8 #include "ace/High_Res_Timer.h"
10 /// Implement the Test::Client_Task interface
11 class Client_Task
: public ACE_Task_Base
15 Client_Task (const ACE_TCHAR
*data_type
,
17 Test::Roundtrip_ptr roundtrip
,
20 /// Add this thread results to the global numbers and print the
21 /// per-thread results.
22 void accumulate_and_dump (ACE_Basic_Stats
&totals
,
24 ACE_High_Res_Timer::global_scale_factor_type gsf
);
26 /// The service method
30 /// Make sure that the current thread has a connection available.
31 void validate_connection ();
33 /// Some performance test methods
34 void test_octet_seq ();
35 void test_long_seq ();
36 void test_short_seq ();
37 void test_char_seq ();
38 void test_longlong_seq ();
39 void test_double_seq ();
42 /// The data type of the sequence load to be tested
43 const ACE_TCHAR
* data_type_
;
45 /// The size of the sequence data
48 /// The object reference used for this test
49 Test::Roundtrip_var roundtrip_
;
51 /// The number of iterations
54 /// Keep track of the latency (minimum, average, maximum and jitter)
55 ACE_Basic_Stats latency_
;
58 #include /**/ "ace/post.h"
59 #endif /* CLIENT_TASK_H */