servertool.1 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. '\" t
  2. .\" Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
  3. .\" Arch: generic
  4. .\" Software: JDK 8
  5. .\" Date: 21 November 2013
  6. .\" SectDesc: Java IDL and RMI-IIOP Tools
  7. .\" Title: servertool.1
  8. .\"
  9. .if n .pl 99999
  10. .TH servertool 1 "21 November 2013" "JDK 8" "Java IDL and RMI-IIOP Tools"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH NAME
  31. servertool \- Provides an easy-to-use interface for developers to register, unregister, start up, and shut down a persistent server\&.
  32. .SH SYNOPSIS
  33. .sp
  34. .nf
  35. \fBservertool\fR \-ORBInitialPort \fInameserverport\fR [ \fIoptions\fR ] [ \fIcommands \fR]
  36. .fi
  37. .sp
  38. .TP
  39. \fIoptions\fR
  40. The command-line options\&. See Options\&.
  41. .TP
  42. commands
  43. The command-line commands\&. See Commands\&.
  44. .SH DESCRIPTION
  45. The \f3servertool\fR command provides the command-line interface for developers to register, unregister, start up, and shut down a persistent server\&. Command-line commands let you obtain various statistical information about the server\&. See Commands\&.
  46. .SH OPTIONS
  47. .TP
  48. -ORBInitialHost \fInameserverhost\fR
  49. .br
  50. This options is required\&. It specifies the host machine on which the name server runs and listens for incoming requests\&. The \f3nameserverhost\fR value must specify the port on which the \f3orb\fR is running and listening for requests\&. The value defaults to \f3localhost\fR when this option is not specified\&. If \f3orbd\fR and \f3servertool\fR are running on different machines, then you must specify the name or IP address of the host on which \f3orbd\fR is running\&.
  51. \fINote:\fR On Oracle Solaris, you must become a root user to start a process on a port below 1024\&. Oracle recommends that you use a port number above or equal to 1024 for the \f3nameserverport\fR value\&.
  52. .TP
  53. -J\fIoption\fR
  54. .br
  55. Passes \f3option\fR to the Java Virtual Machine, where \f3option\fR is one of the options described on the reference page for the Java application launcher\&. For example, \f3-J-Xms48m\fR sets the startup memory to 48 MB\&. See java(1)\&.
  56. .SH COMMANDS
  57. You can start the \f3servertool\fR command with or without a command-line command\&.
  58. .TP 0.2i
  59. \(bu
  60. If you did not specify a command when you started \f3servertool\fR, then the command-line tool displays the \f3servertool\fR prompt where you can enter commands: \f3servertool >\fR\&.
  61. .TP 0.2i
  62. \(bu
  63. If you specify a command when you start \f3servertool\fR, then the Java IDL Server Tool starts, executes the command, and exits\&.
  64. .TP
  65. .ll 180
  66. register -server \fIserver-class-name\fR -classpath \fIclasspath-to-server\fR [ -applicationName \fIapplication-name\fR -args \fIargs-to-server\fR -vmargs \fIflags-for-JVM\fR ]
  67. Registers a new persistent server with the Object Request Broker Daemon (ORBD)\&. If the server is not already registered, then it is registered and activated\&. This command causes an installation method to be called in the \f3main\fR class of the server identified by the \f3-server\fR option\&. The installation method must be \f3public static void install(org\&.omg\&.CORBA\&.ORB)\fR\&. The install method is optional and lets developers provide their own server installation behavior, such as creating a database schema\&.
  68. .TP
  69. .ll 180
  70. unregister -serverid \fIserver-id\fR | -applicationName \fIapplication-name\fR
  71. Unregisters a server from the ORBD with either its server ID or its application name\&. This command causes an uninstallation method to be called in the \f3main\fR class of the server identified by the \f3-server\fR option\&. The \f3uninstall\fR method must be \f3public static void uninstall(org\&.omg\&.CORBA\&.ORB)\fR\&. The \f3uninstall\fR method is optional and lets developers provide their own server uninstallation behavior, such as undoing the behavior of the \f3install\fR method\&.
  72. .TP
  73. getserverid -applicationName \fIapplication-name\fR
  74. Returns the server ID that corresponds to the \f3application-name\fR value\&.
  75. .TP
  76. list
  77. Lists information about all persistent servers registered with the ORBD\&.
  78. .TP
  79. listappnames
  80. Lists the application names for all servers currently registered with the ORBD\&.
  81. .TP
  82. listactive
  83. Lists information about all persistent servers that were started by the ORBD and are currently running\&.
  84. .TP
  85. .ll 180
  86. locate -serverid \fIserver-id\fR | -applicationName \fIapplication-name\fR [ -endpointType \fIendpointType\fR ]
  87. Locates the endpoints (ports) of a specific type for all ORBs created by a registered server\&. If a server is not already running, then it is activated\&. If an \f3endpointType\fR value is not specified, then the plain/non-protected endpoint associated with each ORB in a server is returned\&.
  88. .TP
  89. .ll 180
  90. locateperorb -serverid \fIserver-id\fR | -applicationName \fIapplication-name\fR [ -orbid \fIORB-name\fR ]
  91. Locates all the endpoints (ports) registered by a specific Object Request Broker (ORB) of registered server\&. If a server is not already running, then it is activated\&. If an \f3orbid\fR is not specified, then the default value of \f3""\fR is assigned to the \f3orbid\fR\&. If any ORBs are created with an \f3orbid\fR of empty string, then all ports registered by it are returned\&.
  92. .TP
  93. orblist -serverid \fIserver-id\fR | -applicationName \fIapplication-name\fR
  94. Lists the \f3ORBId\fR of the ORBs defined on a server\&. An \f3ORBId\fR is the string name for the ORB created by the server\&. If the server is not already running, then it is activated\&.
  95. .TP
  96. shutdown -serverid \fIserver-id\fR | -applicationName application-name
  97. Shut down an active server that is registered with ORBD\&. During execution of this command, the \f3shutdown\fR method defined in the class specified by either the \f3-serverid\fR or \f3-applicationName\fR parameter is also called to shut down the server process\&.
  98. .TP
  99. startup -serverid \fIserver-id\fR | -applicationName application-name
  100. Starts up or activate a server that is registered with ORBD\&. If the server is not running, then this command starts the server\&. If the server is already running, then an error message is displayed\&.
  101. .TP
  102. help
  103. Lists all the commands available to the server through the \f3servertool\fR command\&.
  104. .TP
  105. quit
  106. Exits the \f3servertool\fR command\&.
  107. .SH SEE\ ALSO
  108. .TP 0.2i
  109. \(bu
  110. orbd(1)
  111. .RE
  112. .br
  113. 'pl 8.5i
  114. 'bp