4 #include "TestAppBase.h"
5 #include "ClientEngine.h"
6 #include "ServantList_T.h"
7 #include "Callback_i.h"
8 #include "ClientTask.h"
9 #include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
11 #include "ace/SString.h"
14 class ClientApp
: public TestAppBase
21 virtual int run_i(int argc
, ACE_TCHAR
* argv
[]);
25 // These are all called, in order, by the run_i() method.
26 int init(int argc
, ACE_TCHAR
* argv
[]);
32 void run_orb_event_loop();
33 bool check_validity ();
36 // Helper methods used by the methods above.
37 int parse_args(int argc
, ACE_TCHAR
* argv
[]);
39 int set_arg(unsigned& value
,
45 void usage_statement();
46 int arg_dependency_checks();
48 PortableServer::POA_ptr
create_poa(CORBA::ORB_ptr orb
,
49 const char* poa_name
);
52 typedef ServantList
<Callback_i
> ServantListType
;
55 PortableServer::POA_var poa_
;
56 TAO::CSD::TP_Strategy_Handle tp_strategy_
;
58 ServantListType servants_
;
60 ClientTask client_task_
;
62 ACE_TString exe_name_
;
64 unsigned num_servants_
;
65 unsigned num_csd_threads_
;
66 unsigned num_orb_threads_
;
69 unsigned client_kind_
;