summaryrefslogtreecommitdiff
path: root/TAO/examples/CSD_Strategy/ThreadPool5/ServerApp.h
blob: 967f4dab144fdb1587801b497d235665218c09ec (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
// $Id$
#ifndef SERVERAPP_H
#define SERVERAPP_H

#include "ace/SString.h"
#include "ace/CORBA_macros.h"
#include "tao/Environment.h"

class ServerApp
{
  public:

    ServerApp();
    ~ServerApp();

    int run(int argc, ACE_TCHAR* argv[]);


  private:

    int parse_args(int argc, ACE_TCHAR* argv[]);
    void usage_statement();

    ACE_TString exe_name_;
    ACE_TString ior_filename_;
    unsigned    num_servants_;
    unsigned    num_csd_threads_;
    unsigned    num_clients_;
    unsigned    num_orb_threads_;
    int         collocated_test_;
    int         servant_to_deactivate_;
};

#endif