summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Demux/README
blob: 616cb7d5a8c5fc4b896a576748379707df3d5cac (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// $Id$
// ============================================================================
//
// = LIBRARY
//    TAO/performance-tests/Demux
//
// = FILENAME
//    README
//
// = AUTHOR
//
//    Aniruddha Gokhale
//
// ============================================================================


This test directory tests various demultiplexing strategies used in
TAO for POA, object, and operation name lookups

Description of various files:

CodeGen		Directory containing the code generator

server.cpp	server main program
demux_test_server.{h, cpp}: Server-side implementation details

client.cpp	client main program
demux_test_client.{h, cpp}: Client-side implementation details
demux_test_macros.h: Some constants used by both the client and the server


Generated Files: 
----------------

Must run ./CodeGen/demux tool to generate the following files. See
CodeGen/README for command line options.


demux_test.idl: The Demux_Test IDL interface
demux_test_i.{h, cpp}: Implementation of the Interface
demux_test_client.i: Code to be included with the client
poa_names.dat: Names for all the POAs to be used


Command Line options
--------------------

server -d  (for debugging)
       -p <num POAs>
       -o <num objects>
       -f <IOR file>  default is ior.dat

client -d  (for debugging)
       -p <num POAs>
       -o <num objs>
       -m <num methods>
       -f <IOR file>  default is ior.dat
       -n <loop count>
       -i <invoke strategy> (L = linear
                             R = random
                             B = best w.r.t linear
                             W = worst w.r.t linear)


------
*NOTE* 
------
The num_POAs, num_objs, and num_ops must match on the client
and server side.

Use the svc.conf file and change the -ORBsystemidpolicydemuxstrategy
option to use the desired object lookup strategy. For system ID
policy, active demuxing in the default.

Use the desired options to the TAO_IDL compiler so that it will
generate the right lookup strategy for operation name
demultiplexing.