OSDN Git Service

Add linux.x86 linux.x86_64 target
[pizza-ipa-oss/jre.git] / features / jp.pizzafactory.com.sun.jre / rootfiles.linux.x86_64 / jre / man / man1 / servertool.1
1 ." Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. 
2 ."
3 .TH servertool 1 "06 Apr 2010"
4 ." Generated from HTML by html2man (author: Eric Armstrong)
5
6 .LP
7 .SH "Name"
8 servertool \- The Java(TM) IDL Server Tool
9 .LP
10 .RS 3
11
12 .LP
13 \f3servertool\fP provides a command\-line interface for application programmers to register, unregister, startup, and shutdown a persistent server.
14 .RE
15 .SH "SYNOPSIS"
16 .LP
17
18 .LP
19 .nf
20 \f3
21 .fl
22 servertool \-ORBInitialPort \fP\f4nameserverport\fP\f3 \fP\f3options\fP\f3 [ \fP\f3commands\fP\f3 ]
23 .fl
24 \fP
25 .fi
26
27 .LP
28 .LP
29 If you did not enter a command when starting \f2servertool\fP, the command\-line tool displays with a \f2servertool >\fP prompt. Enter commands at the \f2servertool >\fP prompt.
30 .LP
31 .LP
32 If you enter a command when starting \f2servertool\fP, the Java IDL Server Tool starts, runs the command, and exits.
33 .LP
34 .LP
35 The \f2\-ORBInitialPort\fP \f2nameserverport\fP option is \f3required\fP. The value for \f2nameserverport\fP must specify the port on which \f2orbd\fP is running and listening for incoming requests. When using Solaris software, you must become root to start a process on a port under 1024. For this reason, we recommend that you use a port number greater than or equal to 1024 for the \f2nameserverport\fP.
36 .LP
37 .SH "DESCRIPTION"
38 .LP
39
40 .LP
41 .LP
42 The \f2servertool\fP provides the command\-line interface for the application programmers to register, unregister, startup, and shutdown a persistent server. Other commands are provided to obtain various statistical information about the server.
43 .LP
44 .SH "OPTIONS"
45 .LP
46
47 .LP
48 .RS 3
49 .TP 3
50 \-ORBInitialHost nameserverhost 
51 Specifies the host machine on which the name server is running and listening for incoming requests. The \f2nameserverhost\fP defaults to \f2localhost\fP if this option is not specified. If \f2orbd\fP and \f2servertool\fP are running on different machines, you must specify the name or IP address of the host on which \f2orbd\fP is running. 
52 .TP 3
53 \-Joption 
54 Pass \f2option\fP to the Java virtual machine, where \f2option\fP is one of the options described on the reference page for java(1). For example, \f3\-J\-Xms48m\fP sets the startup memory to 48 megabytes. It is a common convention for \f3\-J\fP to pass options to the underlying virtual machine. 
55 .RE
56
57 .LP
58 .SH "COMMANDS"
59 .LP
60
61 .LP
62 .RS 3
63 .TP 3
64 register \-server\ <server\ class\ name> \ \-classpath\ <classpath\ to\ server> [\ \-applicationName\ <application\ name> \-args\ <args\ to\ server> \-vmargs\ <flags\ to\ be\ passed\ to\ Java\ VM> \ ] 
65 Register a new persistent server with the Object Request Broker Daemon (ORBD). If the server is not already registered, it is registered and activated. This command causes an install method to be invoked in the main class of the server identified by the \f2\-server\fP option. The install method must be \f2public static void install(org.omg.CORBA.ORB)\fP. The install method is optional and enables the developer to provide their own server installation behavior (for example, creating database schema). 
66 .TP 3
67 unregister \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name> 
68 Unregister a server from the ORBD by using either its server id or its application name. This command causes an uninstall method to be invoked in the main class of the server identified by the \f2\-server\fP option. The uninstall method must be \f2public static void uninstall(org.omg.CORBA.ORB)\fP. The uninstall method is optional and enables the developer to provide their own server uninstall behavior (for example, undoing the behavior of the install method). 
69 .TP 3
70 getserverid \-applicationName\ <application\ name> 
71 Return the server id that corresponds with an application. 
72 .TP 3
73 list 
74 List information about all persistent servers registered with the ORBD. 
75 .TP 3
76 listappnames 
77 List the application names for all servers currently registered with the ORBD. 
78 .TP 3
79 listactive 
80 List information about all persistent servers that have been launched by the ORBD and are currently running. 
81 .TP 3
82 locate \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name> [\-endpointType\ <endpointType>\ ] 
83 Locate the endpoints (ports) of a specific type for all ORBs created by a registered server. If a server is not already running, it is activated. If an endpoint type is not specified, then the plain/non\-protected endpoint associated with each ORB in a server is returned. 
84 .TP 3
85 locateperorb \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name> [\-orbid\ <ORB\ name>\ ] 
86 Locate all the endpoints (ports) registered by a specific ORB of registered server. If a server is not already running, then it is activated. If an \f2orbid\fP is not specified, the default value of "" is assigned to the \f2orbid\fP. If any ORBs are created with an \f2orbid\fP of empty string, all ports registered by it are returned. 
87 .TP 3
88 orblist \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name> 
89 Lists the ORBId of the ORBs defined on a server. An ORBId is the string name for the ORB created by the server. If the server is not already running, it is activated. 
90 .TP 3
91 shutdown \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name> 
92 Shutdown an active server that is registered with ORBD. During execution of this command, the \f2shutdown()\fP method defined in the class specified by either the \f2\-serverid\fP or \f2\-applicationName\fP parameter is also invoked to shutdown the server process appropriately. 
93 .TP 3
94 startup \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name> 
95 Startup or activate a server that is registered with ORBD. If the server is not running, this command launches the server. If the server is already running, an error message is returned to the user. 
96 .TP 3
97 help 
98 List all the commands available to the server through the server tool. 
99 .TP 3
100 quit 
101 Exit the server tool. 
102 .RE
103
104 .LP
105 .SH "SEE ALSO"
106 .LP
107
108 .LP
109 orbd(1)