home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / JBuilder8.iso / Solaris / resource / jre / man / sman1 / servertool.1 < prev    next >
Encoding:
Text File  |  2002-09-06  |  9.8 KB  |  84 lines

  1. <!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
  2. <!--ArborText, Inc., 1988-1999, v.4002-->
  3. <!ENTITY % javaents SYSTEM "javaman.ent">
  4. %javaents;
  5. ]>
  6. <?Pub UDT _bookmark _target>
  7. <?Pub EntList minus bsol>
  8. <?Pub Inc>
  9. <refentry id="servertool-1">
  10. <!--@(#)servertool.1 1.1 01/03/14 SMI;-->
  11. <refmeta><refentrytitle>servertool</refentrytitle><manvolnum>1</manvolnum>
  12. <refmiscinfo class="date">23 Apr 2001</refmiscinfo>
  13. <refmiscinfo class="sectdesc">&man1;</refmiscinfo>
  14. <refmiscinfo class="software">&java-release;</refmiscinfo>
  15. <refmiscinfo class="arch">generic</refmiscinfo>
  16. <refmiscinfo class="copyright"> Copyright 2001 Sun Microsystems, Inc. All rights reserved.  Copyright 2001 Sun Microsystems, Inc. Tous droits réservés.  </refmiscinfo>
  17. </refmeta>
  18. <refnamediv><indexterm><primary sortas="servertool">servertool — Java IDL Server Tool</primary></indexterm><indexterm><primary sortas="Java server tool">Java IDL Server Tool — servertool</primary></indexterm><refname>servertool</refname><refpurpose>Java IDL Server Tool</refpurpose></refnamediv>
  19. <refsynopsisdiv><title>&synp-tt;</title>
  20. <cmdsynopsis><command>servertool</command><arg choice="opt"> <replaceable>options</replaceable></arg>
  21. </cmdsynopsis></refsynopsisdiv>
  22. <refsect1><title>&desc-tt;</title>
  23. <para>The Java™ IDL Server Tool, <command>servertool</command>, provides the ease-of-use interface for the application programmers to <command>register</command>, <command>unregister</command>, <command>startup</command>, and <command>shutdown</command> a server. In addition to these four commands, other commands are provided to obtain various statistical information about the server.</para>
  24. <para>When the server tool starts, enter one of the options at the <literal>servertool ></literal> prompt.</para>
  25. </refsect1>
  26. <refsect1><title>&opts-tt;</title>
  27. <para>The following options are supported:</para>
  28. <cmdsynopsis><command>register</command><arg choice="plain"><option>server</option> <replaceable>server-class-name</replaceable></arg><arg choice="plain"><option>applicationName</option> <replaceable>alternate-server-name</replaceable></arg><arg choice="plain"><option>classpath</option> <replaceable>classpath-to-server</replaceable></arg><arg choice="plain"><option>args</option> <replaceable>args-to-server
  29. </replaceable></arg><arg choice="plain"><option>vmargs</option> <replaceable>flags-to-be-passed-to-Java-VM</replaceable></arg>
  30. </cmdsynopsis><para><simplelist><member>Registers a new server with the Object Request Broker Daemon (<acronym>ORBD</acronym>). If the server is not already registered, it is registered and activated.</member></simplelist></para>
  31. <cmdsynopsis><command>unregister</command><group><arg choice="plain"><option>serverid</option> <replaceable>server-ID</replaceable></arg><arg choice="plain"><option>applicationName</option> <replaceable>name</replaceable></arg></group>
  32. </cmdsynopsis><para><simplelist><member>Unregisters a server from the <acronym>ORBD</acronym>.</member></simplelist></para>
  33. <cmdsynopsis><command>getserverid</command><arg choice="plain"><option>applicationName</option> <replaceable>name</replaceable></arg>
  34. </cmdsynopsis><para><simplelist><member>Returns the server id from the <acronym>ORBD</acronym> that is associated with a server.</member></simplelist></para>
  35. <cmdsynopsis><command>list</command>
  36. </cmdsynopsis><para><simplelist><member>Lists all information about all servers registered with the Object Request Broker Daemon (<acronym>ORBD</acronym>). In response to this command, the server id, server name, and the corresponding server application name for each server in the <acronym>ORBD</acronym> is retrieved and displayed to the user.</member></simplelist></para>
  37. <cmdsynopsis><command>listappnames</command>
  38. </cmdsynopsis><para><simplelist><member>Lists the application names for all servers currently registered with the <acronym>ORBD</acronym>.</member></simplelist></para>
  39. <cmdsynopsis><command>listactive</command>
  40. </cmdsynopsis><para><simplelist><member>Lists all information about all currently active servers on a machine. The active servers have been launched by the <acronym>ORBD</acronym> and are currently running. In response to this command, the server id, server name, and the corresponding server application name for each active server is retrieved and displayed to the user.</member></simplelist></para>
  41. <cmdsynopsis><command>locate</command><group><arg choice="plain"><option>serverid</option> <replaceable>server-id</replaceable></arg><arg choice="plain"><option>applicationName</option> <replaceable>name</replaceable></arg></group><arg><option>endpointType</option> <replaceable>endpointType</replaceable></arg>
  42. </cmdsynopsis><para><simplelist><member>Locates the endpoints (ports) of a specific type for all <acronym>ORB</acronym>s 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 <acronym>ORB</acronym> in a server is returned.</member></simplelist></para>
  43. <cmdsynopsis><command>locateperorb</command><group><arg choice="plain"><option>serverid</option> <replaceable>server-id</replaceable></arg><arg choice="plain"><option>applicationName</option> <replaceable>name</replaceable></arg></group><arg><option>orbid</option> <replaceable>ORB-name</replaceable></arg>
  44. </cmdsynopsis><para><simplelist><member>Locates all the endpoints (ports) registered by a specific <acronym>ORB</acronym> of registered server. If a server is not already running, then it is activated. If an <replaceable>orbid</replaceable> is not specified, the default value of "" is assigned to the <replaceable>orbid</replaceable>. If any <acronym>ORBs</acronym> are created with an <replaceable>orbid
  45. </replaceable> of empty string, all ports registered by it are returned.</member></simplelist></para>
  46. <cmdsynopsis><command>orblist</command><group><arg choice="plain"><option>serverid</option> <replaceable>server-id</replaceable></arg><arg choice="plain"><option>applicationName</option> <replaceable>name</replaceable></arg></group>
  47. </cmdsynopsis><para><simplelist><member>Lists the integer mapping for the <acronym>ORBId</acronym>s. An <acronym>ORBId</acronym> is the string name for the <acronym>ORB</acronym> created by the server. When a server initializes an <acronym>ORB</acronym> with a particular <acronym>ORBId</acronym>, an integer mapping for that particular <acronym>ORBId</acronym> is obtained. This integer mapping is put
  48. into the object key to help in locating the correct <acronym>ORB</acronym> in the server during requests on the Object Request Broker Daemon (<acronym>ORBD</acronym>). If the server is not already running, it is activated.</member></simplelist></para>
  49. <cmdsynopsis><command>shutdown</command><group><arg choice="plain"><option>serverid</option> <replaceable>server-id</replaceable></arg><arg choice="plain"><option>applicationName</option> <replaceable>name</replaceable></arg></group>
  50. </cmdsynopsis><para><simplelist><member>Shuts down a registered, active server. During execution of this command, the <literal>shutdown()</literal> method defined in the server application program is also invoked to shutdown the server process appropriately.</member></simplelist></para>
  51. <cmdsynopsis><command>startup</command><group><arg choice="plain"><option>serverid</option> <replaceable>server-id</replaceable></arg><arg choice="plain"><option>applicationName</option> <replaceable>name</replaceable></arg></group>
  52. </cmdsynopsis><para><simplelist><member>Starts up or activates a registered server. 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.</member></simplelist></para>
  53. <cmdsynopsis><command>help</command>
  54. </cmdsynopsis><para><simplelist><member>Lists all the commands available to the server through the server tool.</member></simplelist></para>
  55. <cmdsynopsis><command>quit</command>
  56. </cmdsynopsis><para><?Pub Caret><simplelist><member>Exits the server tool.</member></simplelist></para>
  57. </refsect1>
  58. <refsect1><title>&envr-tt;</title>
  59. <variablelist termlength="narrow"><varlistentry><term remap="15"><envar>CLASSPATH</envar> </term><listitem><para>Used to provide the system with a path to user-defined classes. Directories are separated by colons. For example: <informalexample><para><literal>.:/home/avh/classes:/usr/local/java/classes</literal> </para>
  60. </informalexample></para>
  61. </listitem></varlistentry>
  62. </variablelist></refsect1>
  63. <refsect1><title>&attr-tt;</title>
  64. <para>See <citerefentry><refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry> for a description of the following attributes:</para>
  65. <informaltable frame="All" orient="Port">
  66. <tgroup cols="2" colsep="1" rowsep="1"><colspec colnum="1" colname="col1" colwidth="1*" colsep="1" align="Left"><colspec colnum="2" colname="col2" colwidth="1*" align="Left">
  67. <thead>
  68. <row><entry colname="col1" align="center" valign="top">ATTRIBUTE TYPE</entry><entry colname="col2" align="center" valign="top">ATTRIBUTE VALUE</entry></row>
  69. </thead>
  70. <tbody>
  71. <row><entry>Availability</entry><entry>SUNWj3dev</entry></row>
  72. </tbody>
  73. </tgroup>
  74. </informaltable>
  75. </refsect1>
  76. <refsect1><title>&also-tt;</title>
  77. <para><citerefentry><refentrytitle>orbd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry> </para>
  78. <para>See (or search <literal>java.sun.com</literal>) for the following:</para>
  79. <variablelist termlength="wholeline"><varlistentry><term remap="10"><citetitle>Setting the Classpath</citetitle> @</term><listitem><para><ulink url="http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/classpath.html">http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/classpath.html</ulink></para>
  80. </listitem></varlistentry>
  81. </variablelist></refsect1>
  82. </refentry>
  83. <?Pub *0000010094 0>
  84.