jdk/src/linux/doc/man/servertool.1
changeset 2 90ce3da70b43
child 2692 345bc8d65b19
equal deleted inserted replaced
0:fd16c54261b3 2:90ce3da70b43
       
     1 .'" t
       
     2 ."
       
     3 ." Copyright 2001-2006 Sun Microsystems, Inc.  All Rights Reserved.
       
     4 ." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     5 ."
       
     6 ." This code is free software; you can redistribute it and/or modify it
       
     7 ." under the terms of the GNU General Public License version 2 only, as
       
     8 ." published by the Free Software Foundation.
       
     9 ."
       
    10 ." This code is distributed in the hope that it will be useful, but WITHOUT
       
    11 ." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    12 ." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    13 ." version 2 for more details (a copy is included in the LICENSE file that
       
    14 ." accompanied this code).
       
    15 ."
       
    16 ." You should have received a copy of the GNU General Public License version
       
    17 ." 2 along with this work; if not, write to the Free Software Foundation,
       
    18 ." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    19 ."
       
    20 ." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
       
    21 ." CA 95054 USA or visit www.sun.com if you need additional information or
       
    22 ." have any questions.
       
    23 ."
       
    24 ." `
       
    25 .TH servertool 1 "05 Aug 2006"
       
    26 ." Generated by html2roff
       
    27 
       
    28 .LP
       
    29 .SH NAME
       
    30 servertool \- The Java(TM) IDL Server Tool
       
    31 .LP
       
    32 
       
    33 .LP
       
    34 \f3servertool\fP provides a command\-line interface for application programmers to register, unregister, startup, and shutdown a persistent server. 
       
    35 .SH "SYNOPSIS"
       
    36 .LP
       
    37 
       
    38 .LP
       
    39 .nf
       
    40 \f3
       
    41 .fl
       
    42 servertool \-ORBInitialPort \fP\f4nameserverport\fP\f3 \fP\f3options\fP\f3 [ \fP\f3commands\fP\f3 ]
       
    43 .fl
       
    44 \fP
       
    45 .fi
       
    46 
       
    47 .LP
       
    48 .LP
       
    49 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.
       
    50 .LP
       
    51 .LP
       
    52 If you enter a command when starting \f2servertool\fP, the Java IDL Server Tool starts, runs the command, and exits.
       
    53 .LP
       
    54 .LP
       
    55 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.
       
    56 .LP
       
    57 .SH "DESCRIPTION"
       
    58 .LP
       
    59 
       
    60 .LP
       
    61 .LP
       
    62 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.
       
    63 .LP
       
    64 .SH "OPTIONS"
       
    65 .LP
       
    66 
       
    67 .LP
       
    68 .TP 3
       
    69 \-ORBInitialHost nameserverhost 
       
    70 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. 
       
    71 .TP 3
       
    72 \-Joption 
       
    73 Pass \f2option\fP to the Java virtual machine, where \f2option\fP is one of the options described on the reference page for the 
       
    74 .na
       
    75 \f2java a pplication launcher\fP @
       
    76 .fi
       
    77 http://java.sun.com/javase/6/docs/technotes/tools/solaris/java.html. 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. 
       
    78 .LP
       
    79 .SH "COMMANDS"
       
    80 .LP
       
    81 
       
    82 .LP
       
    83 .TP 3
       
    84 register \-server\ <server\ class\ name>
       
    85 \ \-classpath\ <classpath\ to\ server>
       
    86 [\ \-applicationName\ <application\ name>
       
    87 \-args\ <args\ to\ server>
       
    88 \-vmargs\ <flags\ to\ be\ passed\ to\ Java\ VM>
       
    89 \ ] 
       
    90 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). 
       
    91 .TP 3
       
    92 unregister
       
    93 \-serverid\ <server\ id\ >\ |
       
    94 \-applicationName\ <application\ name> 
       
    95 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). 
       
    96 .TP 3
       
    97 getserverid
       
    98 \-applicationName\ <application\ name> 
       
    99 Return the server id that corresponds with an application. 
       
   100 .TP 3
       
   101 list 
       
   102 List information about all persistent servers registered with the ORBD. 
       
   103 .TP 3
       
   104 listappnames 
       
   105 List the application names for all servers currently registered with the ORBD. 
       
   106 .TP 3
       
   107 listactive 
       
   108 List information about all persistent servers that have been launched by the ORBD and are currently running. 
       
   109 .TP 3
       
   110 locate \-serverid\ <server\ id\ >\ |
       
   111 \-applicationName\ <application\ name>
       
   112 [\-endpointType\ <endpointType>\ ] 
       
   113 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. 
       
   114 .TP 3
       
   115 locateperorb
       
   116 \-serverid\ <server\ id\ >\ |
       
   117 \-applicationName\ <application\ name>
       
   118 [\-orbid\ <ORB\ name>\ ] 
       
   119 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. 
       
   120 .TP 3
       
   121 orblist \-serverid\ <server\ id\ >\ |
       
   122 \-applicationName\ <application\ name> 
       
   123 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. 
       
   124 .TP 3
       
   125 shutdown \-serverid\ <server\ id\ >\ |
       
   126 \-applicationName\ <application\ name> 
       
   127 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. 
       
   128 .TP 3
       
   129 startup \-serverid\ <server\ id\ >\ |
       
   130 \-applicationName\ <application\ name> 
       
   131 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. 
       
   132 .TP 3
       
   133 help 
       
   134 List all the commands available to the server through the server tool. 
       
   135 .TP 3
       
   136 quit 
       
   137 Exit the server tool. 
       
   138 .LP
       
   139 .SH "SEE ALSO"
       
   140 .LP
       
   141 
       
   142 .LP
       
   143 orbd 
       
   144 .LP
       
   145