3 // =========================================================================
7 * @desc Provides common functionality needed to run a client
8 * thread. Also incorporates functionality to collect and print
9 * statistics about the test.
11 * @author Mayur Deshpande <mayur@ics.uci.edu>
13 // =========================================================================
15 #ifndef MT_CLIENT_TASK_H
16 #define MT_CLIENT_TASK_H
19 #include "ace/Basic_Stats.h"
20 #include "ace/High_Res_Timer.h"
24 // Helper class for common client functionality
25 class Client_Task
: public ACE_Task_Base
29 Client_Task (int &argc
, ACE_TCHAR
**argv
);
33 void try_RT_scheduling ();
35 int narrow_servant (CORBA::ORB_ptr orb
);
40 /// The service method
45 void accumulate_and_dump (ACE_Basic_Stats
&totals
,
47 ACE_High_Res_Timer::global_scale_factor_type gsf
);
50 /// The object reference used for this test
51 Test::Roundtrip_var roundtrip_
;
53 /// Keep track of the latency (minimum, average, maximum and jitter)
54 ACE_Basic_Stats latency_
;
58 const ACE_TCHAR
*ior_
;
62 #endif // Client_Task_H