summaryrefslogtreecommitdiff
path: root/TAO/docs/Options.html
blob: 90847a89e70ec0456faa985b76411756210d3b09 (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<HTML>
<HEAD>
  <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac">
  <TITLE>Options for TAO Components</TITLE>
</HEAD>

<BODY text = "#000000"
link="#000fff"
vlink="#ff0f0f"
bgcolor="#ffffff">

<H1 ALIGN=CENTER>Options for TAO Components</H1>

<H2>Overview</H2>
<blockquote>
<P>Certain components in TAO such as the ORB Core or object adapter
can be tuned by users by providing value for options to them.  These
options are commonly specified as strings (<EM>e.g.</EM>, passed on
the command-line) and are passed to component initialization methods
for consumption.</P>

<P><EM>Programmer's Note:</EM> the internal structure for these
options is the traditional <CODE>argc</CODE>/<CODE>argv</CODE> vector
of strings style popularized by C and Unix.  By convention, an
initialization method will consume, <EM>i.e.</EM>, remove from the
vector, any options that it recognizes.</P> </blockquote>

<H2>Types of Options</H2>

<H2>Roadmap</H2>

<blockquote>
<P>The following components can be tuned via options:</P>

<UL>
  <LI><A HREF="#ORB"><CODE>CORBA::ORB</CODE></A>
  <LI><A HREF="#POA"><CODE>CORBA::POA</CODE></A>
  <LI><A HREF="#ResourceFactory"><CODE>TAO_Resource_Factory</CODE></A>
  <LI><A HREF="#DefaultServer"><CODE>TAO_Default_Server_Strategy_Factory</CODE></A>
  <LI><A HREF="#DefaultClient" TARGET="_top"><CODE>TAO_Default_Client_Strategy_Factory</CODE></A>
</UL>
</blockquote>

<H2>Options</H2>

<blockquote>
<H3><CODE>CORBA::ORB</CODE><A NAME="ORB"></A></H3>

<blockquote>
<P><TABLE BORDER="2" WIDTH="100%" HEIGHT="96" CELLSPACING="2" CELLPADDING=
"0">
<TR>
<TH WIDTH="43%" HEIGHT="17">Option</TH>
<TH WIDTH="57%">Description</TH></TR>
<TR NAME="ORBsvcconf">
<TD HEIGHT="30"><CODE>-ORBsvcconf</CODE> <EM>config file name</EM></TD>
<TD>Specifies the name of the file from which it will read dynamic service configuration
directives <EM>ala</EM> ACE's Service Configurator.</TD></TR>
<TR>
<TD HEIGHT="17"><CODE>-ORBdaemon</CODE></TD>
<TD>Specifies that the ORB should <I>daemonize</I> itself.</TD></TR>
<TR>
<TD HEIGHT="17"><CODE>-ORBdebug</CODE></TD>
<TD>Turns on the output of debugging messages within ACE's Service Configurator
componentry.</TD></TR>
<TR>
<TD><CODE>-ORBhost</CODE> <EM>hostname</EM></TD>
<TD><a name="-ORBhost"></a>Tells the Object Adapter to listen for requests on the interface associated
with the host named <I><EM>hostname</EM></I>.</TD></TR>
<TR>
<TD><CODE>-ORBport</CODE> <EM>portspec</EM></TD>
<TD>Tells the Object Adapter to listen for requests on the port specified by
<I><EM>portspec</EM></I>, which can be a name as found in <TT>/etc/services</TT>
or a number. The default is <TT>10013</TT>.</TD></TR>
<TR>
<TD><CODE>-ORBobjrefstyle</CODE> <EM>which</EM></TD>
<TD>Specifies the user-visible style of object references. The range of values
is <CODE>IOR</CODE>, which is the traditional nonsensical object reference,
or <CODE>URL</CODE>, which looks more like a URL.</TD></TR>
<TR>
<TD><CODE>-ORBobjdemux</CODE> <EM>demux_method</EM></TD>
<TD>Specifies the method used to demultiplex to an object. The range of values
is <CODE>dynamic</CODE>, <CODE>linear</CODE>, <CODE>active</CODE>, or <CODE>user</CODE>.</TD></TR>
<TR>
<TD><CODE>-ORBtablesize</CODE> <EM>object table size</EM></TD>
<TD>Specifies the size of the object table as a positive, non-zero integer.
If not specified, the default is <TT>64</TT>.</TD></TR>
<TR>
<TD><CODE>-ORBrcvsock</CODE> <EM>receive buffer size</EM></TD>
<TD><A NAME="-ORBrcvsock"></a>Specify the size of the socket receive buffer as a positive, non-zero integer.
If not specified, the system-dependent default is used.</TD></TR>
<TR>
<TD><CODE>-ORBsndsock</CODE> <EM>send buffer size</EM></TD>
<TD><A NAME="-ORBsndsock"></a>Specify the size of the socket send buffer as a positive, non-zero integer.
If not specified, the system-dependent default is used.</TD></TR>
<TR>
<TD><CODE>-ORBnameserviceport</CODE> <EM>portspec</EM></TD>
<TD>Specifies which port the Naming Service is listening on.</TD></TR>
<TR>
<TD><CODE>-ORBnameserviceior</CODE> <EM>ior</EM></TD>
<TD>Specifies the IOR for the Naming Service.</TD></TR>
<TR>
<TD><CODE>-ORBpreconnect</CODE> <EM>host</EM><STRONG>:</STRONG><EM>port</em>[<STRONG>,</STRONG><EM>host</EM><STRONG>:</STRONG><EM>port</em>...]</TD>
<TD><A name="-ORBpreconnect"></a>Pre-establishes a blocking connection to each listed
<em>host</em>:<em>port</em> combination.  If a connection cannot
be established, an warning is announced and it continues with the
next listed.  Listing the same combination multiple times will
properly establish multiple connections to that endpoint.</TD></TR>
</TABLE>
</P>
</blockquote>

<H3><CODE>CORBA::POA</CODE><A NAME="POA"></A></H3>

<blockquote>
<P><TABLE BORDER="2" CELLSPACING="2" CELLPADDING="0" WIDTH="100%">
<TR>
<TH WIDTH="43%" HEIGHT="17">Option</TH>
<TH WIDTH="57%">Description</TH></TR>
<TR>
<TD><CODE>-OAid</CODE> <EM>OA Identifier</EM></TD>
<TD>Associates <I><EM>OA Identifier</EM></I> with the Object Adapter.</TD></TR>
</TABLE>
</P>
</blockquote>

<H3><CODE>TAO_Resource_Factory</CODE><A NAME="ResourceFactory"></A></H3>

<blockquote>
<P><TABLE BORDER="2" CELLSPACING="2" CELLPADDING="0" WIDTH="100%" HEIGHT=
"186">
<TR>
<TH WIDTH="43%" HEIGHT="17">Option</TH>
<TH WIDTH="57%">Description</TH></TR>
<TR>
<TD HEIGHT="43"><CODE>-ORBresources</CODE> <EM>which</EM></TD>
<TD>Specify whether each thread uses a global 
(<em>which</em> = <code>global</code>) or a thread-specific
(<em>which</em> = <code>tss</code>) instance for the resources it returns.</TD></TR>
</TABLE>
</P>
</blockquote>

<H3><CODE>TAO_Default_Server_Strategy_Factory</CODE><A NAME="DefaultServer"></A></H3>

<blockquote>
<P><TABLE BORDER="2" CELLSPACING="2" CELLPADDING="0" WIDTH="100%" HEIGHT=
"186">
<TR>
<TH WIDTH="43%" HEIGHT="17">Option</TH>
<TH WIDTH="57%">Description</TH></TR>
<TR>
<TD HEIGHT="43"><CODE>-ORBthreadflags</CODE> <EM>thread flags</EM></TD>
<TD>Specify the flags used for thread creation. Flags can be any logical-OR
combination of <CODE>THR_DETACHED</CODE>, <CODE>THR_BOUND</CODE>, <CODE>THR_NEW_LWP</CODE>,
<CODE>THE_SUSPENDED</CODE>.</TD></TR>
<TR>
<TD HEIGHT="30"><CODE>-ORBtablesize</CODE> <EM>object table size</EM></TD>
<TD>Specify the size of the object table. If not specified, the default value
is 64.</TD></TR>
<TR>
<TD HEIGHT="17"><CODE>-ORBconcurrency</CODE> <EM>which</EM></TD>
<TD>Specify which concurrency strategy to use.  Range of values is <code>reactive</code>
for a purely Reactor-driven concurrency strategy or
<code>thread-per-connection</code> for creating a new thread to service each connection.</TD></TR>
<TR>
<TD HEIGHT="43"><CODE>-ORBdemuxstrategy</CODE> <EM>demultiplexing strategy</EM></TD>
<TD>Specify the demultiplexing lookup strategy. The <EM>demultiplexing strategy</EM>
can be one of <CODE>dynamic</CODE>, <CODE>linear</CODE>, <CODE>active</CODE>,
or <CODE>user</CODE>.</TD></TR>
</TABLE>
</P>
</blockquote>

<H3><CODE>TAO_Default_Client_Strategy_Factory</CODE><A NAME="DefaultClient"></A></H3>

<BLOCKQUOTE>
  <P>There are currently no options for the <CODE>TAO_Default_Client_Strategy_Factory</CODE>.</P>
</BLOCKQUOTE>
</blockquote>

<P><HR><P>
Back to the TAO <A HREF="components.html">components documentation</A>.

<!--#include virtual="/~schmidt/cgi-sig.html" -->
</HTML>