jdk/src/linux/doc/man/ja/rmid.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
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
.\" Copyright 2000-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
.\" This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
.\" under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
.\" published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
.\" This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
.\" version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
.\" accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
.\" You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
.\" 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
.\" Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
.\" CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
.\" have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.TH rmid 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.SH "名前"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
rmid \- RMI 起動システムデーモン
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
\f3rmid\fP で起動システムデーモンを開始すると、オブジェクトを仮想マシン (VM) に登録して起動できるようになります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.SH "形式"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
[
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.I options
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.SH "機能説明"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.IX "RMI activation system daemon" "" "RMI activation system daemon \(em \fLrmid\fP"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.IX "rmid" "" "\fLrmid\fP \(em RMI activation system daemon"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
ツールは、起動システムデーモンを開始します。起動可能なオブジェクトを起動
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
システムに登録したり、Java VM でアクティブにしたりするには、あらかじめ起動
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
システムデーモンを開始しておく必要があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
起動可能なリモートオブジェクト
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
を使ったプログラムの作成方法についての詳細は、Java RMI の仕様
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 (http://java.sun.com/javase/6/docs/platform/rmi/spec/rmitoc.html) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
および起動のチュートリアル
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 (http://java.sun.com/javase/6/docs/technotes/guides/rmi/activation/overview.html) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
を参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
起動システムデーモンは、次のようにセキュリティポリシーファイルを指定して
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
コマンドを実行することによって開始できます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.B % rmid \-J\-Djava.security.policy=rmid.policy
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
注: Sun の
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.BR rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
実装を実行する場合、デフォルトではセキュリティポリシーファイルを指定する必要があります。そうすることで、起動グループ用の JVM の起動に、各
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.B ActivationGroupDesc
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
内の情報を使用できるかどうかを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
が確認できます。特に、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.B CommandEnvironment
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
により指定されるコマンドやオプション、および
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.B ActivationGroupDesc
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
のコンストラクタに渡されるすべての
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.B プロパティ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.BR rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
用のセキュリティポリシーファイルで明示的に許可することが必要になりました。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.B sun.rmi.activation.execPolicy
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
プロパティの値は、起動グループの JVM の起動に
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.B ActivationGroupDesc
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
内の情報を使用できるかどうかの判断に
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
が使用するポリシーを定義します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
をデフォルト設定で実行することにより、以下が行われます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
このコマンドはアクティベータを起動するとともにデフォルトポートの
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.BR 1098 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
で内部レジストリを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
開始し、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.PD 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.B ActivationSystem
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.B java.rmi.activation.ActivationSystem 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
という名前に内部レジストリ上でバインドします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
レジストリにほかのポートを指定するには、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.BR rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
の起動時に 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.B -port 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
オプションを指定しなければなりません。たとえば、次のようにします。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.B rmid \-J\-Djava.security.policy=rmid.policy \-port 1099
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
このコマンドは、起動システムデーモンを開始し、レジストリのデフォルトポート
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.B 1099
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
でレジストリを開始します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.SS inetd/xinetd からの rmid の起動
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
コマンド行から 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
を起動しないで、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
inetd (Solaris) または xinetd (Linux) を設定し、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
を必要に応じて起動することができます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
起動時に 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
は、System.inheritedChannel メソッドを呼び出して
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
継承チャネル (inetd/xinetd からの継承) の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
取得を試みます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
継承されたチャンネルが \f2null\fP であるか、\f2java.nio.channels.ServerSocketChannel\fP のインスタンスでなかった場合、\f2rmid\fP はそのチャンネルは \f2inetd\fP/\f2xinetd\fP によって起動されたものではないと判断し、前述のように起動します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
継承チャンネルが ServerSocketChannel 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
インスタンスの場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
は ServerSocketChannel から
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
取得した java.net.ServerSocket を、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
エクスポートするリモートオブジェクト 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
(java.rmi.activation.ActivationSystem が
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
バインドされるレジストリと 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
java.rmi.activation.Activator 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
リモートオブジェクト) に対する要求を
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
受け入れるサーバソケットとして使用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
このモードでは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
の動作は、次のことを除いて、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
コマンド行から起動した場合と同じです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
\(bu System.err に表示される出力はファイルにリダイレクト
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
されます。このファイルは、接頭辞「rmid-err」と接尾辞「tmp」を
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
使用して java.io.tmpdir システムプロパティ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
(通常 /var/tmp または /tmp) で指定したディレクトリにあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
\(bu \-port オプションは許可されていません。このオプションが
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
指定されている場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
はエラーメッセージを表示して
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
終了します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
\(bu \-log オプションは必須です。このオプションが
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
指定されていない場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
はエラーメッセージを表示して
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
終了します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
必要に応じて開始するサービスの設定方法についての詳細は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
inetd (Solaris) または xinetd (Linux) のマニュアルページを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
参照してください。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
.SH "オプション"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.BI \-C someCommandLineOption
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
の子プロセス (起動グループ) が作成されたときに、各子プロセスにコマンド行引数
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
として渡されるオプションを指定します。たとえば、次のように指定すると、起動システム
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
デーモンによって生成される各 Java Virtual Machine にプロパティを渡すことができます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.B rmid \-C\-Dsome.property=value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
コマンド行引数を子プロセスに渡す機能は、デバッグを行う際に便利です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
たとえば、次のようなコマンドを実行できます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
.B rmid \-C\-Djava.rmi.server.logCalls=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
このコマンドによって、すべての子 JVM でサーバ呼び出しのログが残るようになります。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.BI \-J<someCommandLineOption>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
を実行中の java インタプリタに渡すオプションを指定します。たとえば、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
.BR rmid.policy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
という名前のポリシーファイルを使用する場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.BR rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
のコマンド行で
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
.B \-J
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
オプションを使って
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.B java.security.policy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
プロパティを定義します。次に例を示します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.B rmid \-J\-Djava.security.policy=rmid.policy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.BI \-J\-Dsun.rmi.activation.execPolicy=<policy> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
起動グループの実行対象となる JVM の起動に使用するコマンドおよびコマンド行オプションを検査するために、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
が採用するポリシーを指定します。このオプションは、Sun の RMI 起動デーモン実装だけに存在することに注意してください。コマンド行にこのプロパティを指定しない場合、結果は 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
.B \-J-Dsun.rmi.activation.execPolicy=default
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
を指定した場合と同じになります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.IR policy 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
に指定可能な値は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.BR default 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.IR policyClassName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
、または none です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
.BR 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.B default 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
(または、このプロパティを指定しない場合)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
デフォルトの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
.B execPolicy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
では、使用するセキュリティポリシーファイル内のコマンドおよびオプションを実行する権限が
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
に与えられる場合にのみ、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
は特定のコマンド行オプションを指定してコマンドを実行できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.BR default 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
の実行ポリシーを使用できるのは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
デフォルトの起動グループ実装だけです。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
は、起動グループの JVM を起動する際、その登録された起動グループ記述子である 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
.BR ActivationGroupDesc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
内の情報を使用します。グループ記述子では、オプションの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
.B ActivationGroupDesc.CommandEnvironment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
を指定します。これには、起動グループを開始する「コマンド」、およびコマンド行に追加する
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
任意のコマンド行「オプション」が含まれます。デフォルトでは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
.BR java.home 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
にある
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.B java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
コマンドを使用します。グループ記述子には、次に示すように、オプションとしてコマンド行に
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
追加される「プロパティ」オーバーライドも含まれます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
.BI \-D<property>=<value>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
アクセス権
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
.B com.sun.rmi.rmid.ExecPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
を使用すると、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
に対し、グループ記述子の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
.B CommandEnvironment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
で指定されたコマンドを実行して起動グループを開始する権限を与えることができます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
アクセス権 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
.B com.sun.rmi.rmid.ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
を使用すると、起動グループを開始するときに、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
グループ記述子でプロパティオーバーライドとして指定されたコマンド行
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
オプション、または
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
.BR CommandEnvironment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
でオプションとして指定されたコマンド行オプションを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
から使用できます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
にさまざまなコマンドおよびオプションを実行する権限を与える場合、アクセス権
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.B ExecPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
および
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
.B ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
を普遍的に (つまり、すべてのコードソースに対して) 許可する必要があります。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
.BI ExecPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
.B ExecPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
クラスは、起動グループを開始するために
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
が特定の「コマンド」を実行する権限を表します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
.B 構文
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
.B ExecPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
の「名前」は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
に実行権限を与えるコマンドのパス名です。「/*」(「/」はファイル区切り文字、つまり 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
.BR File.separatorChar 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
) で終わるパス名は、そのディレクトリに含まれるすべてのファイルを表します。「/-」
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
で終わるパス名は、そのディレクトリに含まれるすべてのファイルとサブディレクトリ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
(再帰的に) を表します。パス名に特別なトークン「<<ALL FILES>>」を指定した場合は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
任意のファイルに一致します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
.B 注: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
「*」が 1 つだけ指定されたパス名は、現在のディレクトリ内のすべてのファイルを表し、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
「-」が 1 つだけ指定されたパス名は、現在のディレクトリ内のすべてのファイルと、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
現在のディレクトリに含まれるすべてのファイルとサブディレクトリ (再帰的に) を表します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
.BI ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
.B ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
クラスは、起動グループの開始時に
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
が特定のコマンド行「オプション」を使用する権限を表します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.B ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
の「名前」は、コマンド行オプションの値です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
.B 構文
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
オプションでは、制限付きワイルドカード指定がサポートされます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
アスタリスクは、ワイルドカードマッチングを指定します。アスタリスクは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
オプション名自体を表す (つまり、すべてのオプションに一致する) ために
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
使用できます。また、「.」および「=」の次に指定する場合にのみ、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
オプション名の最後にアスタリスクを使用できます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
例を示します。「*」、「-Dfoo.*」、「-Da.b.c=*」は有効です。「*foo」、「-Da*b」
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
、「ab*」は無効です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
.BI rmid のポリシーファイル
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
にさまざまなコマンドおよびオプションを実行する権限を与える場合は、アクセス権
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
.B ExecPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
および
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
.B ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
を普遍的に (つまり、すべてのコードソースに対して) 許可する必要があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
これらのアクセス権を検査するのは
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
だけであるため、普遍的に許可しても安全です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
にさまざまな実行権限を許可するポリシーファイルの例を、次に示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
grant {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
    permission com.sun.rmi.rmid.ExecPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
           "/files/apps/java/jdk1.2.2/solaris/bin/java";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
    permission com.sun.rmi.rmid.ExecPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
           "/files/apps/java/jdk1.2.2/solaris/bin/java_g";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
    permission com.sun.rmi.rmid.ExecPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
           "/files/apps/rmidcmds/*";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
    permission com.sun.rmi.rmid.ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
           "-Djava.security.policy=/files/policies/group.policy";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
    permission com.sun.rmi.rmid.ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
           "-Djava.security.debug=*";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
    permission com.sun.rmi.rmid.ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
           "-Dsun.rmi.*";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
最初の 2 つのアクセス権は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
に対し、パス名により明示された 1.2.2 バージョンの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
.B java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
コマンドを実行する許可を与えます。デフォルトでは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
.B java.home
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
にある
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
.B java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
コマンドのバージョン (
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
が使用するのと同じもの) が使用されるため、ポリシーファイルで指定する必要はありません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
3 番目のアクセス権は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
に対し、ディレクトリ
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
.BR /files/apps/rmidcmds
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
内の任意のコマンドを実行する権限を与えます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
4 番目に許可されたアクセス権
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
.BR ExecOptionPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
.B rmid 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
に対し、セキュリティポリシーファイルを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
.BR /files/policies/group.policy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
に定義する起動グループを開始する権限を与えます。次のアクセス権は、起動グループが 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
.B java.security.debug 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
プロパティを使用する権限を与えます。最後のアクセス権は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
起動グループが 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
.B sun.rmi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
プロパティ名階層内の任意のプロパティを使用する権限を与えます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
ポリシーファイルを使って
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
を起動するには、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
.BR rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
のコマンド行で
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
.B java.security.policy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
プロパティを指定する必要があります。次に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
.ti +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
.B rmid \-J\-Djava.security.policy=rmid.policy 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
.I <policyClassName>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
デフォルトの動作では十分な柔軟性が得られない場合、管理者は
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
.BR rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
の起動時に、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
.B checkExecCommand
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
メソッドが実行されるクラスの名前を指定することにより、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
.BR rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
が実行するコマンドを検査できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
.IR policyClassName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
には、public で引数を必要としないコンストラクタとともに public クラスを指定します。また、次の 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
.B checkExecCommand
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
メソッド実装も指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
.in +5n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
public void checkExecCommand(ActivationGroupDesc desc,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
                             String[] command)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
    throws SecurityException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
.in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
起動グループを開始する前に、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
は、ポリシーの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
.BR checkExecCommand
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
メソッドを呼び出して、起動グループの記述子および起動グループを開始する完全な
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
コマンドを含む配列を渡します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
.B checkExecCommand
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
.BR SecurityException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
をスローする場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
は起動グループを開始せず、オブジェクトの起動を試みている呼び出し側に
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
.B ActivationException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
がスローされます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
.B none
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
.B sun.rmi.activation.execPolicy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
プロパティの値が「none」の場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
は、起動グループの開始コマンドの検証を一切行いません。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
.BI \-log  " dir"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
起動システムデーモンがデータベースおよび関連情報を書き込むのに使う、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
ディレクトリの名前を指定します。デフォルトでは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
コマンドを実行したディレクトリに
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
.B log 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
というログディレクトリが作成されます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
.BI \-port " port" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
.BR rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
のレジストリが使うポートを指定します。起動システムデーモンは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
.BR java.rmi.activation.ActivationSystem 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
という名前で 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
.BR ActivationSystem
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
をレジストリにバインドします。したがって、ローカルマシンの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
.B ActivationSystem 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
は、次のように
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
.B Naming.lookup
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
メソッドを呼び出すことによって取得できます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
.RS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
import java.rmi.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
import java.rmi.activation.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
ActivationSystem system;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
system = (ActivationSystem)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
Naming.lookup("//:port/java.rmi.activation.ActivationSystem");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
.TP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
.BI \-stop
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
.B -port
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
オプションによって指定されたポートの、現在の 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
の呼び出しを停止します。ポートの指定がない場合は、ポート 1098 で実行されている 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
.B rmid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
を停止します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
.SH "環境変数"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
.TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
.SB "CLASSPATH"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
ユーザ定義クラスへのパスをシステムに通知するために使用します。ディレクトリはコロンで
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
区切ります。以下に例を示します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
% .:/usr/local/java/classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
.SH "関連項目"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
rmic、CLASSPATH、java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564