summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/ImR/Advanced/TestClient.h
blob: 237437daa5c087aad2658a2a916f114f3701efe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//$Id$
#include "tao/ORB.h"

#include "ace/Task.h"

#include <vector>
#include <string>
#include "ace/Capabilities.h"

class TestClient : public ACE_Task_Base, public ACE_Capabilities
{
public:
  TestClient(CORBA::ORB_ptr orb, int argc, char* argv[]);

  virtual ~TestClient();

  void run();

private:
  int parseCommands(int argc, char* argv[]);
  void buildIORList();
  void pause(int milliseconds);
  virtual int svc();

  CORBA::ORB_var     orb_;
  std::vector<ACE_TString> iors_;

  char               pauseType_;
  int                startupPause_;
  int                threadCount_;
  int                instance_;
  int                iterations_;
  int                requestCount_;
  bool               randomRequests_;
  bool               shutdownOrb_;
  bool               expectHolding_;
  bool               expectNoProfile_;
};