|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
グループ、およびその中にある起動可能なオブジェクトのうちで起動しておくものを登録する方法を提供します。ActivationSystem は、ActivationSystem を使って登録されたオブジェクトを起動する Activator、および、起動中あるいは停止中のオブジェクトと停止中のグループの情報を取得する ActivationMonitor と密接に連携します。
Activator,
ActivationMonitor| フィールドの概要 | |
static int |
SYSTEM_PORT
起動システムを探すポートです。 |
| メソッドの概要 | |
ActivationMonitor |
activeGroup(ActivationGroupID id,
ActivationInstantiator group,
long incarnation)
グループが起動中であることを起動システムに通知するコールバックです。 |
ActivationDesc |
getActivationDesc(ActivationID id)
起動識別子が id であるオブジェクトの起動記述子を返します。 |
ActivationGroupDesc |
getActivationGroupDesc(ActivationGroupID id)
起動グループ識別子が id であるグループの起動グループ記述子を返します。 |
ActivationGroupID |
registerGroup(ActivationGroupDesc desc)
起動グループを登録します。 |
ActivationID |
registerObject(ActivationDesc desc)
起動記述子 desc の登録、および起動可能なリモートオブジェクトの起動識別子の取得に使います。 |
ActivationDesc |
setActivationDesc(ActivationID id,
ActivationDesc desc)
起動識別子が id であるオブジェクトの起動記述子 desc を設定します。 |
ActivationGroupDesc |
setActivationGroupDesc(ActivationGroupID id,
ActivationGroupDesc desc)
起動グループ識別子が id であるオブジェクトの起動グループ記述子 desc を設定します。 |
void |
shutdown()
起動システムを停止します。 |
void |
unregisterGroup(ActivationGroupID id)
起動グループを削除します。 |
void |
unregisterObject(ActivationID id)
ActivationSystem で登録された起動 ID、および関連付けられた記述子を削除します。 |
| フィールドの詳細 |
public static final int SYSTEM_PORT
| メソッドの詳細 |
public ActivationID registerObject(ActivationDesc desc)
throws ActivationException,
UnknownGroupException,
RemoteException
desc の登録、および起動可能なリモートオブジェクトの起動識別子の取得に使います。ActivationSystem は、記述子 desc に指定されたオブジェクトの ActivationID (起動識別子) を作成し、固定記憶に、あとで使用するための起動記述子およびそれに関連付けられた識別子を記録します。Activator が特定の識別子の activate 要求を受け取った場合は、指定された識別子の起動記述子 (以前に登録されたもの) を検索した上で、その情報を使ってオブジェクトを起動します。desc - オブジェクトの起動記述子desc に示されたグループがシステムに登録されていない場合
public void unregisterObject(ActivationID id)
throws ActivationException,
UnknownObjectException,
RemoteException
ActivationSystem で登録された起動 ID、および関連付けられた記述子を削除します。オブジェクトは、その起動 ID で起動できなくなります。id - オブジェクトの起動 ID (以前に登録されたもの)
public ActivationGroupID registerGroup(ActivationGroupDesc desc)
throws ActivationException,
RemoteException
ActivationSystem で起動グループを登録しないと、そのグループにオブジェクトを登録できません。desc - グループの記述子
public ActivationMonitor activeGroup(ActivationGroupID id,
ActivationInstantiator group,
long incarnation)
throws UnknownGroupException,
ActivationException,
RemoteException
ActivationGroup.createGroup メソッドの内部で実行されることにより、ActivationSystem にグループが起動中であることが通知されます。id - 起動グループの識別子group - グループのインスタンシエータincarnation - グループの生成番号
public void unregisterGroup(ActivationGroupID id)
throws ActivationException,
UnknownGroupException,
RemoteException
id - 起動グループの識別子
public void shutdown()
throws RemoteException
public ActivationDesc setActivationDesc(ActivationID id,
ActivationDesc desc)
throws ActivationException,
UnknownObjectException,
UnknownGroupException,
RemoteException
id であるオブジェクトの起動記述子 desc を設定します。この変更は、次回にオブジェクトを起動したときに有効になります。id - 起動可能なオブジェクトの起動識別子desc - 起動可能なオブジェクトの起動記述子desc に関連付けられたグループが未登録の場合id が未登録の場合
public ActivationGroupDesc setActivationGroupDesc(ActivationGroupID id,
ActivationGroupDesc desc)
throws ActivationException,
UnknownGroupException,
RemoteException
id であるオブジェクトの起動グループ記述子 desc を設定します。この変更は、次回にグループを起動したときに有効になります。id - 起動グループの、起動グループ識別子desc - 起動グループの、起動グループ記述子id に関連付けられたグループが未登録の場合
public ActivationDesc getActivationDesc(ActivationID id)
throws ActivationException,
UnknownObjectException,
RemoteException
id であるオブジェクトの起動記述子を返します。id - 起動可能なオブジェクトの起動識別子id が未登録の場合
public ActivationGroupDesc getActivationGroupDesc(ActivationGroupID id)
throws ActivationException,
UnknownGroupException,
RemoteException
id であるグループの起動グループ記述子を返します。id - グループの起動グループ識別子id が未登録の場合
|
Java プラットフォーム 1.2 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||