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
23 virtual int run_i(int argc
, ACE_TCHAR
* argv
[]);
28 // These are all called, in order, by the run_i() method.
29 int init(int argc
, ACE_TCHAR
* argv
[]);
32 void client_setup(void);
33 void poa_activate(void);
35 void run_orb_event_loop(void);
36 bool check_validity ();
39 // Helper methods used by the methods above.
40 int parse_args(int argc
, ACE_TCHAR
* argv
[]);
42 int set_arg(unsigned& value
,
48 void usage_statement();
49 int arg_dependency_checks();
51 PortableServer::POA_ptr
create_poa(CORBA::ORB_ptr orb
,
52 const char* poa_name
);
55 typedef ServantList
<Callback_i
> ServantListType
;
58 PortableServer::POA_var poa_
;
59 TAO::CSD::TP_Strategy_Handle tp_strategy_
;
61 ServantListType servants_
;
63 ClientTask client_task_
;
65 ACE_TString exe_name_
;
67 unsigned num_servants_
;
68 unsigned num_csd_threads_
;
69 unsigned num_orb_threads_
;
72 unsigned client_kind_
;