10.12.2 IORInterceptorのメソッド
-
public void establish_components(
IORInfo info);
サーバ側ORBは,特定のオブジェクトリファレンスの一つ以上のプロファイルにインクルードするコンポーネントの一覧を生成するときに,登録済みIORInterceptorインスタンスすべてのestablish_components()メソッドを呼び出します。このメソッドは,オブジェクトリファレンスごとに呼び出す必要はありません。POAの場合は,POA.create_POA()呼び出し時に毎回呼び出されます。ほかのアダプタの場合は,通常,アダプタの初期化時に呼び出されます。
この段階では,アダプタテンプレートは使用できません。それは,アダプタテンプレートに必要な情報(コンポーネント)がまだ作成されていないためです。
-
info
適用可能なポリシーを照会し,生成されたIORにインクルードするコンポーネントを追加するときに,ORBサービスが使用するIORInfoインスタンス
-
-
public void components_established(
IORInfo info);
establish_components()メソッドがすべて呼び出されると,登録済みIORインタセプタすべてのcomponents_established()メソッドが呼び出されます。この段階では,アダプタテンプレートが使用できます。また,current_factory属性を取得したり設定したりすることもできます。
components_established()で発生する例外はすべて,components_established()の呼び出し元に返されます。このため,POAの場合,create_POA()呼び出しは失敗し,標準マイナーコード6のOBJ_ADAPTER例外がcreate_POA()の呼び出し元に返されます。
-
info
適用可能なポリシーにアクセスするためにORBサービスが使用するIORInfoインスタンス
-
-
public void adapter_manager_state_changed(
int id, short state);
アダプタマネージャの状態が変わったときに,登録済みIORインタセプタすべてのadapter_manager_state_changed()メソッドが呼び出されます。
状態の変化がadapter_manager_state_changed()によって通知される場合は,adapter_state_changed()では通知されません。
-
id
適用可能なポリシーにアクセスするためにORBサービスが使用するIORInfoインスタンス
-
state
オブジェクトアダプタの変更後の状態
-
-
public void adapter_state_changed(
ObjectReferenceTemplate[ ] templates, short state);
アダプタマネージャの状態の変化と関連なく,一つ以上のオブジェクトアダプタの状態が変更された場合は,このメソッドに通知されます。templatesパラメタは,状態が変更されたオブジェクトアダプタをテンプレートID情報で識別します。このパラメタには,通知対象のオブジェクトアダプタの,すべてのアダプタテンプレートが格納されます。
-
templates
状態が変更されたオブジェクトアダプタをテンプレートID情報で識別します。
-
state
オブジェクトアダプタの変更後の状態
-