jdk/src/solaris/doc/sun/man/man1/ja/servertool.1
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
'\" t
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
.\" Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
.\" This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
.\" under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
.\" published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
.\" This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
.\" version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
.\" accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
.\" You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
.\" 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
.\" Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
.\" CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
.\" have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
.TH servertool 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
.SH "名前"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
servertool - Java(TM) IDL サーバツール
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
.B servertool
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
は、アプリケーション開発者が持続サーバの登録、登録解除、起動、停止を行うためのコマンド行インタフェースを提供します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.SH "形式"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.B servertool 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
\-ORBInitialPort nameserverport options [ commands ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.B servertool 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
の起動時にコマンドを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
入力しなかった場合は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
コマンド行ツールが 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.B servertool > 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
プロンプトを表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.B servertool > 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
プロンプトで
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
コマンドを入力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.B servertool 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
の起動時にコマンドを入力した場合は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
Java IDL サーバツールが起動し、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
コマンドを実行して終了します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
\-ORBInitialPort nameserverport オプションは、必須です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
nameserverport の値は、orbd を実行し、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
着信要求を待機しているポートを指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
Solaris ソフトウェアを使用する場合は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
スーパーユーザになって 1024 未満のポートでプロセスを開始する
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
必要があります。このため、1024 以上のポート番号の
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
使用を推奨します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.SH 機能説明
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.BR servertool 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
はアプリケーション
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
プログラマが、持続サーバの登録、登録解除、起動、停止を
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
行うためのコマンド行インタフェースです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
サーバに関するさまざまな統計情報を取得するために
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
その他のコマンドが用意されています。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.SH オプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.BI \-ORBInitialHost " nameserverhost"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
ネームサーバを実行し、着信要求を待機している
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
ホストマシンを指定します。このオプションを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
指定しない場合、nameserverhost はデフォルトの 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
localhost になります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.B orbd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.B servertool 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
が異なるマシンで実行されている場合は、orbd が
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
実行されているホストの名前または IP アドレスを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
指定する必要があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.BI \-J option
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
オプションを Java 仮想マシンに渡します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
ここで option は、Java アプリケーション
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
起動プログラム
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
(http://java.sun.com/javase/6/docs/technotes/tools/solaris/java.html)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
のリファレンスページで説明されている
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
オプションの 1 つです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
たとえば、\-J-Xms48m は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
起動メモリを 48M バイトに設定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
\-J が基本にする仮想マシンにオプションを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
渡すことは、共通の規約です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.SH コマンド
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.B register  \-server  <server class name>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.B \-classpath <classpath to server> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
[ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.B \-applicationName <application\ name>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.B \-args <args to server>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.B \-vmargs <flags to be passed 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
.B to Java VM>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
新しい持続サーバを Object Request Broker Daemon (ORBD) に登録します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
まだ登録されていない場合は、サーバが登録され、有効化されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
このコマンドを使用すると、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
\-server オプションによって
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
識別されるサーバのメインクラスでインストールメソッドが
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
呼び出されます。インストールメソッドは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
public static void install (org.omg.CORBA.ORB) で
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
なければなりません。このインストールメソッドを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
オプションで使用すると、開発者は独自の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
サーバインストール動作 (データベーススキーマの作成など) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
を指定できます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.B unregister \-serverid <server id >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.B | \-applicationName <application\ name> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
サーバ ID またはアプリケーション名を使用して、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
ORBD からサーバを登録解除します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
このコマンドを使用すると、\-server オプションによって
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
識別されたサーバのメインクラスでアンインストール
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
メソッドが呼び出されます。アンインストールメソッドは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
public static void uninstall(org.omg.CORBA.ORB) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
でなければなりません。このアンインストールメソッドを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
オプションで使用すると、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
開発者は独自のサーバアンインストール動作 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
(インストールメソッドの動作の取り消しなど) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
を指定できます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.B getserverid \-applicationName <application name> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
アプリケーションに対応するサーバ ID を返します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.B list 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
ORBD に登録されているすべての持続サーバに関する情報を
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
一覧表示します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.B listappnames
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
ORBD に現在登録されているすべてのサーバのアプリケーション名を
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
一覧表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.B listactive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
ORBD によって起動され、稼動しているすべての
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
持続サーバに関する情報を
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
すべて一覧表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
locate \-serverid\ <server\ id\ >\ |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
\-applicationName\ <application\ name>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
[\-endpointType\ <endpointType>\ ] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
登録されているサーバによって作成されたすべての ORB の特定のタイプ
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
のエンドポイント (ポート) を特定します。サーバがまだ稼動していな
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
い場合は、起動されます。エンドポイントタイプが指定されないと、サ
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
ーバ内の各 ORB に関連したプレーン/非保護の 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
エンドポイントが返されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
locateperorb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
\-serverid\ <server\ id\ >\ |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
\-applicationName\ <application\ name>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
[\-orbid\ <ORB\ name>\ ] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
登録されているサーバの特定の ORB によって登録されたすべてのエンド
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
ポイント (ポート) を特定します。サーバがまだ動作していない場合は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
起動されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.BR orbid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
が指定されないと、デフォルト値である "" が
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.BR orbid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
に割り当てられます。空の文字列の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.BR orbid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
を使用して ORB が作成されると、それによって登録されているす
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
べてのポートが返されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.B orblist \-serverid <server id> | 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
.B \-applicationName <application name> ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
サーバで定義されている ORB の ORBId を一覧表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
ORBId は、サーバによって作成された ORB の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
文字列名です。サーバがまだ稼動していない場合は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
サーバを起動します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.B shutdown \-serverid <server id> | 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
.B \-applicationName <application name> ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
ORBD に登録されているアクティブなサーバを停止します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
このコマンドの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
実行中に、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
サーバプロセスを適切に停止するために、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
\-serverid または \-applicationName パラメータで
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
指定されたクラスで定義されている 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.BR shutdown() 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
メソッドも呼び出されます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.B startup \-serverid <server id> | 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.B \-applicationName <application name> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
ORBD に登録されているサーバを起動します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
サーバが稼動していな
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
い場合、このコマンドはサーバを起動します。サーバが既に稼動して
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
いる場合は、エラーメッセージがユーザに返されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
.B help
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
このサーバツールを使用してサーバに対して実行できるすべての
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
コマンドを一覧表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.B quit 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
このサーバツールを終了します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.SS "関連項目"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
orbd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224