11.6.2 BindInterceptorのメソッド
-
public com.inprise.vbroker.IOP.IORValue bind(
com.inprise.vbroker.IOP.IORValue ior,
org.omg.CORBA.Object obj,boolean rebind,
com.inprise.vbroker.interceptor.Closure closure)
このメソッドは,すべてのORBバインドオペレーション中に呼び出されます。
新規IORを使用してバインドオペレーションを継続する場合,新規IORを返します。それ以外の場合はnullを返し,元のIORを使用してバインドを続行します。渡されたパラメタと同じIORを返すことは不正なので,バインド時に例外が発生します。
-
ior
クライアントがバインドしているサーバオブジェクトのIOR
-
obj
サーバにバインドしているクライアントオブジェクト。このオブジェクトはこの時点では適切に初期化されていないので,オブジェクトのオペレーションはしないでください。しかし,このオブジェクトをデータ構造体に保存してバインド完了後に使用できます。
-
rebind
リバインドを試行することを指定します。
-
closure
バインドオペレーション用の新しいclosureオブジェクト。closureは,bind_failed,またはbind_succeededに対応した呼び出しで使用します。
-
-
public com.inprise.vbroker.IOP.IORValue bind_failed(
com.inprise.vbroker.IOP.IORValue ior,
org.omg.CORBA.Object obj,
com.inprise.vbroker.interceptor.Closure closure)
このメソッドは,バインドオペレーションが失敗したときに呼び出されます。
このIORに対してリバインドを試行する場合,新規IORを返します。それ以外の場合はnullを返し,リバインドは試行されません。
-
ior
バインドオペレーションが失敗したサーバオブジェクトのIOR
-
obj
サーバにバインドしているクライアントオブジェクト
-
closure
前回のバインド呼び出しで与えられたclosureオブジェクト
-
-
com.inprise.vbroker.IOP.IORValue ior,
org.omg.CORBA.Object obj,int profileIndex,
com.inprise.vbroker.interceptor.InterceptorManagerControl
interceptorControl,
com.inprise.vbroker.interceptor.Closure closure)
このメソッドは,バインドオペレーションが成功すると呼び出されます。
-
ior
バインドオペレーションが成功したサーバオブジェクトのIOR
-
obj
サーバにバインドしているクライアントオブジェクト
-
profileIndex
実際にバインドが成功したプロファイルのインデックス
-
interceptorControl
このマネージャがマネージャ種別一覧を提供します。
-
closure
前回のバインド呼び出しで与えられたclosureオブジェクト
-
-
public void exception_occurred,(
com.inprise.vbroker.IOP.IORValue ior,
org.omg.CORBA.Object obj,
org.omg.CORBA.Environment env,
com.inprise.vbroker.interceptor.Closure closure)
このメソッドは,bindで例外が発生すると呼び出されます。
-
ior
成功したバインドオペレーションの対象サーバオブジェクトのIOR
-
obj
サーバにバインドしているクライアントオブジェクト
-
env
発生した例外の情報
-
closure
前回のバインド呼び出しで与えられたclosureオブジェクト
-