summaryrefslogtreecommitdiff
path: root/TAO/examples/CSD_Strategy/ThreadPool2/README
blob: 4c770475642f24512b1de0fb7df5efe93db0c451 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# $Id$

Description:

This is another test showing the use of a Custom Servant Dispatching
(CSD) Strategy.  This test uses the reference implementation, known as the
Thread Pool CSD Strategy.  This tests some simple remote two-way CORBA
requests and a simple remote one-way request.

The server application creates 10 servant object, runs the ORB event
loop using the main thread, and uses 10 worker thread for the
Thread Pool CSD Strategy.

The client application invokes simple two-way calls on the object
reference.  There is also a simple one-way call that is also made on
the object reference.

The run_test.pl script will launch 1 sever process, and 40 client processes.
Since the server process contains 10 distinct servants, the clients are
evenly divided such that each servant "serves" 4 distinct clients.


Executables:

  * client_main

      This is the client test executable.

      Command-line arguments:

        -? : Prints the executable's available command-line options, and
             then exits.

        -i <ior string> : Provide the IOR to the client (ie, file://some.ior).

  * server_main

      This is the server test executable.

      Command-line arguments:

        -? : Prints the executable's available command-line options, and
             then exits.

        -p <ior filename prefix> : Common prefix used in all ior filenames
                                   that are output.

        -s <num servants> : The number of servant objects in the server.

        -c <num clients> : The number of clients that will use the server.

  * run_test.pl

      This perl script will run an automated test using 40 client processes
      and 1 server process.  The script returns 0 if the test was successful.

      No command-line options are supported.  Simply execute the perl script
      as follows:

          $ ./run_test.pl