public abstract class RemoteServer extends RemoteObject
RemoteServer
は、サーバーの実装に対する共通のスーパー・クラスであり、広範囲のリモート参照セマンティックスをサポートするフレームワークを提供します。 特に、リモート・オブジェクトを作成してエクスポートする(すなわち、リモートで使用可能にする)ために必要な機能がRemoteServer
によって抽象的に、またそのサブクラス(複数も可)によって具象的に提供されます。 ref
修飾子 | コンストラクタ | 説明 |
---|---|---|
protected |
RemoteServer() |
RemoteServer を構築します。 |
protected |
RemoteServer(RemoteRef ref) |
参照型を指定して
RemoteServer を構築します。 |
修飾子と型 | メソッド | 説明 |
---|---|---|
static String |
getClientHost() |
現在のスレッドで処理されているリモート・メソッド呼出しのクライアント・ホストを示す文字列表現を返します。
|
static PrintStream |
getLog() |
RMI呼出しログのストリームを返します。
|
static void |
setLog(OutputStream out) |
出力ストリーム
out にRMI呼出しのログを記録します。 |
protected RemoteServer()
RemoteServer
を構築します。protected RemoteServer(RemoteRef ref)
RemoteServer
を構築します。ref
- リモート参照public static String getClientHost() throws ServerNotActiveException
ServerNotActiveException
- 現在のスレッドでリモート・メソッド呼出しが処理されていない場合public static void setLog(OutputStream out)
out
にRMI呼出しのログを記録します。 out
がnull
の場合、呼出しのロギングはオフになります。
セキュリティ・マネージャが存在する場合は、java.util.logging.LoggingPermission("control")
アクセス権を使用してcheckPermission
メソッドが呼び出され、その結果SecurityException
になることがあります。
out
- RMI呼出しが記録される出力ストリームSecurityException
- セキュリティ・マネージャが存在する場合に、そのcheckPermission
メソッド呼出しに失敗したときgetLog()
public static PrintStream getLog()
setLog(java.io.OutputStream)
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。