org.omg.CosNaming
クラス _NamingContextStub
java.lang.Object
|
+--org.omg.CORBA.portable.ObjectImpl
|
+--org.omg.CosNaming._NamingContextStub
- すべての実装インタフェース:
- IDLEntity, NamingContext, NamingContextOperations, Object, java.io.Serializable
- public class _NamingContextStub
- extends ObjectImpl
- implements NamingContext
- 関連項目:
- 直列化された形式
クラス org.omg.CORBA.portable.ObjectImpl から継承したメソッド |
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString |
クラス java.lang.Object から継承したメソッド |
getClass, notify, notifyAll, wait, wait, wait |
インタフェース org.omg.CORBA.Object から継承したメソッド |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
__opsClass
public static final java.lang.Class __opsClass
_TIMEOUT
public static int _TIMEOUT
_NamingContextStub
public _NamingContextStub()
_ids
public java.lang.String[] _ids()
- オーバーライド:
- クラス
ObjectImpl
内の _ids
bind
public void bind(NameComponent[] n,
Object obj)
throws NotFound,
CannotProceed,
InvalidName,
AlreadyBound
- インタフェース
NamingContextOperations
の記述:
- 名前コンテキストに、バインディング(名前とオブジェクトリファレンスの対応)を生成します。
最後以外の階層はバインディングが存在し、それが名前コンテキストであるものを指定します。
また、すでに使われている名前は指定できません。
- 定義:
- インタフェース
NamingContextOperations
内の bind
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- パラメータ:
n
- 名前を表すNameComponentオブジェクトの配列obj
- オブジェクトリファレンス- 例外:
NotFound
- 名前の最後以外の階層に対応するバインディングが存在しない、名前の最後以外の階層が名前コンテキストでないCannotProceed
- この名前サーバだけでは解決できないInvalidName
- 名前の長さが0であるAlreadyBound
- 名前がすでに使用されている
rebind
public void rebind(NameComponent[] n,
Object obj)
throws NotFound,
CannotProceed,
InvalidName
- インタフェース
NamingContextOperations
の記述:
- すでに使用されている名前を別のオブジェクトに対応させて、
バインディングを生成します。
そのため、以前のオブジェクトリファレンスに対応するバインディングは失われます。
最後以外の階層はバインディングが存在し、それが名前コンテキストであるものを指定します。
- 定義:
- インタフェース
NamingContextOperations
内の rebind
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- パラメータ:
n
- 名前を表すNameComponentオブジェクトの配列obj
- オブジェクトリファレンス- 例外:
NotFound
- 名前の最後以外の階層に対応するバインディングが存在しない、名前の最後以外の階層が名前コンテキストでないCannotProceed
- この名前サーバだけでは解決できないInvalidName
- 名前の長さが0である
bind_context
public void bind_context(NameComponent[] n,
NamingContext nc)
throws NotFound,
CannotProceed,
InvalidName,
AlreadyBound
- インタフェース
NamingContextOperations
の記述:
- 名前コンテキストに、バインディング(名前と名前コンテキストの対応)を生成します。
最後以外の階層はバインディングが存在し、それが名前コンテキストであるものを指定します。
また、すでに使われている名前は指定できません。
- 定義:
- インタフェース
NamingContextOperations
内の bind_context
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- パラメータ:
n
- 名前を表すNameComponentオブジェクトの配列nc
- 名前コンテキスト- 例外:
NotFound
- 名前の最後以外の階層に対応するバインディングが存在しない、名前の最後以外の階層が名前コンテキストでないCannotProceed
- この名前サーバだけでは解決できないInvalidName
- 名前の長さが0であるAlreadyBound
- 名前がすでに使用されている
rebind_context
public void rebind_context(NameComponent[] n,
NamingContext nc)
throws NotFound,
CannotProceed,
InvalidName
- インタフェース
NamingContextOperations
の記述:
- すでに使用されている名前を別の名前コンテキストに対応させて、バインディングを生成します。
そのため、以前の名前コンテキストに対応するバインディングは失われます。
最後以外の階層はバインディングが存在し、それが名前コンテキストであるものを指定します。
- 定義:
- インタフェース
NamingContextOperations
内の rebind_context
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- パラメータ:
n
- 名前を表すNameComponentオブジェクトの配列nc
- 名前コンテキスト- 例外:
NotFound
- 名前の最後以外の階層に対応するバインディングが存在しない、名前の最後以外の階層が名前コンテキストでないCannotProceed
- この名前サーバだけでは解決できないInvalidName
- 名前の長さが0である
resolve
public Object resolve(NameComponent[] n)
throws NotFound,
CannotProceed,
InvalidName
- インタフェース
NamingContextOperations
の記述:
- 名前コンテキストから、指定した名前に対応するオブジェクトリファレンスを検索します。
名前には、すべての階層のバインディングが存在し、それが名前コンテキストであるものを指定します。
- 定義:
- インタフェース
NamingContextOperations
内の resolve
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- パラメータ:
n
- 名前- 戻り値:
- オブジェクトリファレンス
- 例外:
NotFound
- 名前の最後以外の階層に対応するバインディングが存在しない、名前の最後以外の階層が名前コンテキストでないCannotProceed
- この名前サーバだけでは解決できないInvalidName
- 名前の長さが0である
unbind
public void unbind(NameComponent[] n)
throws NotFound,
CannotProceed,
InvalidName
- インタフェース
NamingContextOperations
の記述:
- 名前コンテキストから、指定した名前に対応するバインディングを削除します。
名前には、すべての階層のバインディングが存在し、それが名前コンテキストであるものを指定します。
- 定義:
- インタフェース
NamingContextOperations
内の unbind
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- パラメータ:
n
- 名前- 例外:
NotFound
- 名前の最後以外の階層に対応するバインディングが存在しない、名前の最後以外の階層が名前コンテキストでないCannotProceed
- この名前サーバだけでは解決できないInvalidName
- 名前の長さが0である
new_context
public NamingContext new_context()
- インタフェース
NamingContextOperations
の記述:
- 名前コンテキストを生成します。生成した名前コンテキストはLostAndFoundにつながっています。
この名前コンテキストに名前をつけるとLostAndFoundからはずされます。
- 定義:
- インタフェース
NamingContextOperations
内の new_context
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- 戻り値:
- 生成された名前コンテキストオブジェクト
bind_new_context
public NamingContext bind_new_context(NameComponent[] n)
throws NotFound,
AlreadyBound,
CannotProceed,
InvalidName
- インタフェース
NamingContextOperations
の記述:
- このオペレーションを発行した名前コンテキストに、
名前と生成された名前コンテキストのオブジェクトリファレンスとの対応(バインディング)を生成します。
最後以外の階層はバインディングが存在し、それが名前コンテキストであるものを指定します。
また、すでに使われている名前は指定できません。
- 定義:
- インタフェース
NamingContextOperations
内の bind_new_context
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- パラメータ:
n
- 名前を表すNameComponentオブジェクトの配列- 戻り値:
- 生成された名前コンテキストオブジェクト
- 例外:
NotFound
- 名前の最後以外の階層に対応するバインディングが存在しない、名前の最後以外の階層が名前コンテキストでないCannotProceed
- この名前サーバだけでは解決できないInvalidName
- 名前の長さが0であるAlreadyBound
- 名前がすでに使用されている
destroy
public void destroy()
throws NotEmpty
- インタフェース
NamingContextOperations
の記述:
- 名前コンテキストを削除します。
ルートコンテキスト(名前サービスのオブジェクトリファレンスと同一)
およびLostAndFoundに対してはdestroyを呼び出さないでください。
この名前コンテキストが他の名前コンテキストからバインドされていても、
名前コンテキストを削除し、正常終了します。
削除された名前コンテキストをバインドしている名前コンテキストのバインディングは削除されません。
バインディングを削除するには、
削除された名前コンテキストをバインディングしていた名前コンテキストに対して
jp.co.nec.orb.NamingContextRr.unbindを実行してください。
- 定義:
- インタフェース
NamingContextOperations
内の destroy
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- 例外:
NotEmpty
- 名前コンテキストにバインディングが存在する
list
public void list(int how_many,
BindingListHolder bl,
BindingIteratorHolder bi)
- インタフェース
NamingContextOperations
の記述:
- 名前コンテキストに登録されているバインディングの一覧を取得します。
要求数が名前コンテキストのバインディング数以上であれば、
リストをBindingListHolderオブジェクトに返します。
このとき、BindingIteratorHolderオブジェクトにはnilオブジェクトが返ります。
要求数が名前コンテキストのバインディング数未満であれば、
BindingIteratorを生成し、残りのバインディングを、BindingIteratorにコピーします。
そして、BindingIteratorHolderオブジェクトに、
生成したBindingIteratorのオブジェクトリファレンスを返し、
BindingListHolderオブジェクトに要求数分のバインディングを返します。
取得したBindingIteratorは削除しなければ、メモリ上に蓄積され、性能などに影響を与えることがあります。
- 定義:
- インタフェース
NamingContextOperations
内の list
- インタフェース
org.omg.CosNaming.NamingContextOperations
からコピーされたタグ:
- パラメータ:
how_many
- 要求数bl
- BindingListHolderオブジェクトbi
- BindingIteratorHolderオブジェクト