jp.go.aist.rtm.RTC
クラス CorbaNaming

java.lang.Object
  上位を拡張 jp.go.aist.rtm.RTC.CorbaNaming

public class CorbaNaming
extends java.lang.Object

CORBA Naming Service ヘルパークラスです。 このクラスは、NamingContext に対するラッパークラスです。 NamingContext が持つオペレーションとほぼ同じ機能の オペレーションを提供するとともに、ネームコンポーネント NameComponent の代わりに文字列による名前表現を受け付けるオペレーションも提供します。 オブジェクトは生成時、あるいは生成直後に CORBA ネームサーバに接続し 以後、このネームサーバのルートコンテキストに対して種々のオペレーション を処理します。 深い階層のネーミングコンテキストの作成やオブジェクトのバインドにおいて、 途中のコンテキストが存在しない場合でも、強制的にコンテキストをバインド し目的のコンテキストやオブジェクトのバインドを行うこともできます。


コンストラクタの概要
CorbaNaming(org.omg.CORBA.ORB orb)
          コンストラクタです。
CorbaNaming(org.omg.CORBA.ORB orb, java.lang.String name_server)
          コンストラクタです。
 
メソッドの概要
 void bind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          Object を bind します。
 void bind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj, boolean force)
          Object を bind します。
 void bindByString(java.lang.String string_name, org.omg.CORBA.Object obj)
          文字列表現の Object を強制的に bind します。
 void bindByString(java.lang.String string_name, org.omg.CORBA.Object obj, boolean force)
          文字列表現の Object を bind します。
 void bindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
          NamingContext を強制的に bind します。
 void bindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
          NamingContext を bind します。
 void bindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt)
          文字列表現の NamingContext を強制的に bind します。
 void bindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
          文字列表現の NamingContext を bind します。
 void bindContextRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
          NamingContext を 再帰的に bind します。
 org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name)
          新しいコンテキストを強制的に bind します。
 org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name, boolean force)
          新しいコンテキストを bind します。
 org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name)
          新しいコンテキストを強制的に bind します。
 org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name, boolean force)
          新しいコンテキストを bind します。
 org.omg.CosNaming.NamingContext bindOrResolve(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          名前をバインドまたは解決します。
 org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name)
          名前をバインドまたは解決します。
 org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext new_context)
          名前をバインドまたは解決します。
 void bindRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          途中のコンテキストを bind しながら Object を bind します。
 void clearAll()
          すべての Binding を削除します。
 void destroy(org.omg.CosNaming.NamingContext context)
          NamingContext を非アクティブ化します。
 void destroyRecursive(org.omg.CosNaming.NamingContext context)
          NamingContext を再帰的に下って非アクティブ化します。
 java.lang.String getNameServer()
          ネームサーバの名前を取得します。
 org.omg.CosNaming.NamingContext getRootContext()
          ルートコンテキストを取得します。
 void init(java.lang.String name_server)
          ネーミングサービスを初期化します。
 boolean isNamingContext(org.omg.CosNaming.NameComponent[] name)
          与えられた名前がネーミングコンテキストかどうか判断します。
 boolean isNamingContext(org.omg.CORBA.Object obj)
          オブジェクトがネーミングコンテキストか判別します。
 boolean isNamingContext(java.lang.String string_name)
          与えられた名前がネーミングコンテキストかどうか判断します。
 void list(org.omg.CosNaming.NamingContext name_cxt, long how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi)
          与えられた NamingContext の Binding を取得します。
 org.omg.CosNaming.NamingContext newContext()
          新しいコンテキストを生成します。
 void rebind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          Object を強制的に rebind します。
 void rebind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj, boolean force)
          Object を rebind します。
 void rebindByString(java.lang.String string_name, org.omg.CORBA.Object obj)
          Object を強制的に rebind します。
 void rebindByString(java.lang.String string_name, org.omg.CORBA.Object obj, boolean force)
          文字列表現の Object を rebind します。
 void rebindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
          NamingContext を強制的に rebind します。
 void rebindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
          NamingContext を rebind します。
 void rebindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt)
          文字列表現のNamingContext を強制的に rebind します。
 void rebindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
          文字列表現のNamingContext を rebind します。
 void rebindContextRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
          途中のコンテキストを再帰的に rebind し NamingContext を rebind します。
 void rebindRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          途中のコンテキストを bind しながら Object を rebind します。
 org.omg.CORBA.Object resolve(org.omg.CosNaming.NameComponent[] name)
          Object を name から解決します。
 org.omg.CORBA.Object resolve(java.lang.String string_name)
          文字列表現の Object を name から解決します。
 org.omg.CORBA.Object resolveStr(java.lang.String string_name)
          与えられた文字列表現を resolve しオブジェクトを返します。
 org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name, long begin)
          ネームコンポーネントの部分を返します。
 org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name, long begin, long end)
          ネームコンポーネントの部分を返します。
 org.omg.CosNaming.NameComponent[] toName(java.lang.String sname)
          与えられた文字列表現を NameComponent に分解します。
 java.lang.String toString(org.omg.CosNaming.NameComponent[] name)
          与えられた NameComponent の文字列表現を返します。
 java.lang.String toUrl(java.lang.String addr, java.lang.String string_name)
          与えられた addre と string_name から URL表現を取得します。
 void unbind(org.omg.CosNaming.NameComponent[] name)
          指定された名前のオブジェクトの bind を解除します。
 void unbind(java.lang.String string_name)
          文字列表現で指定された名前のオブジェクトの bind を解除します。
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CorbaNaming

public CorbaNaming(org.omg.CORBA.ORB orb)

コンストラクタです。

パラメータ:
orb - ORB

CorbaNaming

public CorbaNaming(org.omg.CORBA.ORB orb,
                   java.lang.String name_server)
            throws java.lang.Exception

コンストラクタです。

パラメータ:
orb - ORB
name_server - ネーミングサービス名
例外:
java.lang.Exception
メソッドの詳細

init

public void init(java.lang.String name_server)
          throws java.lang.Exception

ネーミングサービスを初期化します。

パラメータ:
name_server - ネーミングサービス名称
例外:
java.lang.Exception

bind

public void bind(org.omg.CosNaming.NameComponent[] name,
                 org.omg.CORBA.Object obj)
          throws org.omg.CosNaming.NamingContextPackage.NotFound,
                 org.omg.CosNaming.NamingContextPackage.CannotProceed,
                 org.omg.CosNaming.NamingContextPackage.InvalidName,
                 org.omg.CosNaming.NamingContextPackage.AlreadyBound

Object を bind します。 与えられたネームサーバのルートコンテキストに対して Objectを強制的にbindします。

パラメータ:
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられる Object
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。

bind

public void bind(org.omg.CosNaming.NameComponent[] name,
                 org.omg.CORBA.Object obj,
                 boolean force)
          throws org.omg.CosNaming.NamingContextPackage.NotFound,
                 org.omg.CosNaming.NamingContextPackage.CannotProceed,
                 org.omg.CosNaming.NamingContextPackage.InvalidName,
                 org.omg.CosNaming.NamingContextPackage.AlreadyBound

Object を bind します。 NamingContextOperations.bind() とほぼ同等の働きをするが、常に与えられたネームサーバの ルートコンテキストに対してbind()が呼び出される点が異なります。 Name と Object を当該 NamingContext 上にバインドします。 c_n が n 番目の NameComponent をあらわすとすると、 name が n 個の NameComponent から成るとき、以下のように扱われます。 cxt->bind(, obj) は以下の操作と同等です。 cxt->resolve()->bind(, obj) すなわち、1番目からn-1番目のコンテキストを解決し、n-1番目のコンテキスト 上に name として obj を bind します。 名前解決に参加する の NemingContext は、 bindContext() や rebindContext() で既にバインド済みでなければなりません。 もし の NamingContext が存在しない場合には、 NotFound 例外が発生します。 ただし、強制バインドフラグ force が true の時は、 が存在しない場合にも、再帰的にコンテキストをバインドしながら、 最終的に obj を名前 name にバインドします。 いずれの場合でも、n-1番目のコンテキスト上に name のオブジェクト (Object あるいは コンテキスト) がバインドされていれば AlreadyBound 例外が発生します。

パラメータ:
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられる Object
force - trueの場合、途中のコンテキストを強制的にバインドする
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。

bindByString

public void bindByString(java.lang.String string_name,
                         org.omg.CORBA.Object obj)
                  throws org.omg.CosNaming.NamingContextPackage.NotFound,
                         org.omg.CosNaming.NamingContextPackage.CannotProceed,
                         org.omg.CosNaming.NamingContextPackage.InvalidName,
                         org.omg.CosNaming.NamingContextPackage.AlreadyBound

文字列表現の Object を強制的に bind します。 Object を bind する際に与える名前が文字列表現であること以外は、bind() と同じです。bind(toName(string_name), obj) と等価。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - string_name の Object がすでにバインドされている。

bindByString

public void bindByString(java.lang.String string_name,
                         org.omg.CORBA.Object obj,
                         boolean force)
                  throws org.omg.CosNaming.NamingContextPackage.NotFound,
                         org.omg.CosNaming.NamingContextPackage.CannotProceed,
                         org.omg.CosNaming.NamingContextPackage.InvalidName,
                         org.omg.CosNaming.NamingContextPackage.AlreadyBound

文字列表現の Object を bind します。 Object を bind する際に与える名前が文字列表現であること以外は、bind() と同じです。bind(toName(string_name), obj) と等価。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
obj - 関連付けられるオブジェクト
force - trueの場合、途中のコンテキストを強制的にバインドする
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - string_name の Object がすでにバインドされている。

bindRecursive

public void bindRecursive(org.omg.CosNaming.NamingContext context,
                          org.omg.CosNaming.NameComponent[] name,
                          org.omg.CORBA.Object obj)
                   throws org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName,
                          org.omg.CosNaming.NamingContextPackage.AlreadyBound,
                          org.omg.CosNaming.NamingContextPackage.NotFound

途中のコンテキストを bind しながら Object を bind します。 context で与えられた NamingContext に対して、name で指定された ネームコンポーネント を NamingContext として 解決しながら、名前 に対して obj を bind します。 もし、 に対応する NamingContext がない場合には 新たな NamingContext をバインドします。 最終的に に対応する NamingContext が生成 または解決された上で、CosNaming::bind(, object) が呼び出されます。 このとき、すでにバインディングが存在すれば AlreadyBound例外が発生します。 途中のコンテキストを解決する過程で、解決しようとするコンテキストと 同じ名前の NamingContext ではない Binding が存在する場合、 CannotProceed 例外が発生し処理を中止します。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前のネームコンポーネント
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.CannotProceed - に対応する NamingContext のうちひとつが、すでに NamingContext 以外の object にバインド されており、処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 名前 name が不正
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name にすでに何らかの object がバインド されている。
org.omg.CosNaming.NamingContextPackage.NotFound

rebind

public void rebind(org.omg.CosNaming.NameComponent[] name,
                   org.omg.CORBA.Object obj)
            throws org.omg.CosNaming.NamingContextPackage.NotFound,
                   org.omg.CosNaming.NamingContextPackage.CannotProceed,
                   org.omg.CosNaming.NamingContextPackage.InvalidName

Object を強制的に rebind します。

パラメータ:
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.NotFound
org.omg.CosNaming.NamingContextPackage.CannotProceed
org.omg.CosNaming.NamingContextPackage.InvalidName

rebind

public void rebind(org.omg.CosNaming.NameComponent[] name,
                   org.omg.CORBA.Object obj,
                   boolean force)
            throws org.omg.CosNaming.NamingContextPackage.NotFound,
                   org.omg.CosNaming.NamingContextPackage.CannotProceed,
                   org.omg.CosNaming.NamingContextPackage.InvalidName

Object を rebind します。 name で指定された Binding がすでに存在する場合を除いて bind() と同じ です。バインディングがすでに存在する場合には、新しいバインディングに 置き換えられます。

パラメータ:
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられるオブジェクト
force - trueの場合、途中のコンテキストを強制的にバインドする
例外:
org.omg.CosNaming.NamingContextPackage.NotFound
org.omg.CosNaming.NamingContextPackage.CannotProceed
org.omg.CosNaming.NamingContextPackage.InvalidName

rebindByString

public void rebindByString(java.lang.String string_name,
                           org.omg.CORBA.Object obj)
                    throws org.omg.CosNaming.NamingContextPackage.NotFound,
                           org.omg.CosNaming.NamingContextPackage.CannotProceed,
                           org.omg.CosNaming.NamingContextPackage.InvalidName

Object を強制的に rebind します。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。

rebindByString

public void rebindByString(java.lang.String string_name,
                           org.omg.CORBA.Object obj,
                           boolean force)
                    throws org.omg.CosNaming.NamingContextPackage.NotFound,
                           org.omg.CosNaming.NamingContextPackage.CannotProceed,
                           org.omg.CosNaming.NamingContextPackage.InvalidName

文字列表現の Object を rebind します。 Object を rebind する際に与える名前が文字列表現であること以外は rebind() と同じです。rebind(toName(string_name), obj) と等価。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
obj - 関連付けられるオブジェクト
force - trueの場合、途中のコンテキストを強制的にバインドする
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。

rebindRecursive

public void rebindRecursive(org.omg.CosNaming.NamingContext context,
                            org.omg.CosNaming.NameComponent[] name,
                            org.omg.CORBA.Object obj)
                     throws org.omg.CosNaming.NamingContextPackage.CannotProceed,
                            org.omg.CosNaming.NamingContextPackage.InvalidName,
                            org.omg.CosNaming.NamingContextPackage.NotFound

途中のコンテキストを bind しながら Object を rebind します。 name で指定された NamingContext もしくは Object がすでに存在する 場合を除いて bindRecursive() と同じです。 name で指定されたバインディングがすでに存在する場合には、 新しいバインディングに置き換えられます。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前の文字列表現
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.CannotProceed - 途中のコンテキストが解決できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 与えられた name が不正。
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。

bindContext

public void bindContext(org.omg.CosNaming.NameComponent[] name,
                        org.omg.CosNaming.NamingContext name_cxt)
                 throws org.omg.CosNaming.NamingContextPackage.NotFound,
                        org.omg.CosNaming.NamingContextPackage.CannotProceed,
                        org.omg.CosNaming.NamingContextPackage.InvalidName,
                        org.omg.CosNaming.NamingContextPackage.AlreadyBound

NamingContext を強制的に bind します。

パラメータ:
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。

bindContext

public void bindContext(org.omg.CosNaming.NameComponent[] name,
                        org.omg.CosNaming.NamingContext name_cxt,
                        boolean force)
                 throws org.omg.CosNaming.NamingContextPackage.NotFound,
                        org.omg.CosNaming.NamingContextPackage.CannotProceed,
                        org.omg.CosNaming.NamingContextPackage.InvalidName,
                        org.omg.CosNaming.NamingContextPackage.AlreadyBound

NamingContext を bind します。 bind されるオブジェクトが NamingContext であることを除いて bind() と同じです。

パラメータ:
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
force - trueの場合、途中のコンテキストを強制的にバインドする
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。

bindContext

public void bindContext(java.lang.String string_name,
                        org.omg.CosNaming.NamingContext name_cxt)
                 throws org.omg.CosNaming.NamingContextPackage.NotFound,
                        org.omg.CosNaming.NamingContextPackage.CannotProceed,
                        org.omg.CosNaming.NamingContextPackage.InvalidName,
                        org.omg.CosNaming.NamingContextPackage.AlreadyBound

文字列表現の NamingContext を強制的に bind します。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - string_name の Object がすでにバインドされている。

bindContext

public void bindContext(java.lang.String string_name,
                        org.omg.CosNaming.NamingContext name_cxt,
                        boolean force)
                 throws org.omg.CosNaming.NamingContextPackage.NotFound,
                        org.omg.CosNaming.NamingContextPackage.CannotProceed,
                        org.omg.CosNaming.NamingContextPackage.InvalidName,
                        org.omg.CosNaming.NamingContextPackage.AlreadyBound

文字列表現の NamingContext を bind します。 bind されるオブジェクトが NamingContext であることを除いて bind() と同じです。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
name_cxt - 関連付けられる NamingContext
force - trueの場合、途中のコンテキストを強制的にバインドする
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - string_name の Object がすでにバインドされている。

bindContextRecursive

public void bindContextRecursive(org.omg.CosNaming.NamingContext context,
                                 org.omg.CosNaming.NameComponent[] name,
                                 org.omg.CosNaming.NamingContext name_cxt)
                          throws org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                 org.omg.CosNaming.NamingContextPackage.InvalidName,
                                 org.omg.CosNaming.NamingContextPackage.AlreadyBound,
                                 org.omg.CosNaming.NamingContextPackage.NotFound

NamingContext を 再帰的に bind します。 bind されるオブジェクトが NamingContext であることを除いて bindRecursive() と同じです。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。

rebindContext

public void rebindContext(org.omg.CosNaming.NameComponent[] name,
                          org.omg.CosNaming.NamingContext name_cxt)
                   throws org.omg.CosNaming.NamingContextPackage.NotFound,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName

NamingContext を強制的に rebind します。

パラメータ:
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

rebindContext

public void rebindContext(org.omg.CosNaming.NameComponent[] name,
                          org.omg.CosNaming.NamingContext name_cxt,
                          boolean force)
                   throws org.omg.CosNaming.NamingContextPackage.NotFound,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName

NamingContext を rebind します。 name で指定されたコンテキストがすでに存在する場合を除いて bindContext() と同じです。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられます。

パラメータ:
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
force - trueの場合、途中のコンテキストを強制的にバインドする
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

rebindContext

public void rebindContext(java.lang.String string_name,
                          org.omg.CosNaming.NamingContext name_cxt)
                   throws org.omg.CosNaming.NamingContextPackage.NotFound,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName

文字列表現のNamingContext を強制的に rebind します。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。

rebindContext

public void rebindContext(java.lang.String string_name,
                          org.omg.CosNaming.NamingContext name_cxt,
                          boolean force)
                   throws org.omg.CosNaming.NamingContextPackage.NotFound,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName

文字列表現のNamingContext を rebind します。 name で指定されたコンテキストがすでに存在する場合を除いて bindContext() と同じです。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられます。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
name_cxt - 関連付けられる NamingContext
force - trueの場合、途中のコンテキストを強制的にバインドする
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。

rebindContextRecursive

public void rebindContextRecursive(org.omg.CosNaming.NamingContext context,
                                   org.omg.CosNaming.NameComponent[] name,
                                   org.omg.CosNaming.NamingContext name_cxt)
                            throws org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                   org.omg.CosNaming.NamingContextPackage.InvalidName,
                                   org.omg.CosNaming.NamingContextPackage.NotFound

途中のコンテキストを再帰的に rebind し NamingContext を rebind します。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前の文字列表現
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

resolve

public org.omg.CORBA.Object resolve(org.omg.CosNaming.NameComponent[] name)
                             throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                    org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                    org.omg.CosNaming.NamingContextPackage.InvalidName

Object を name から解決します。 name に bind されているオブジェクト参照を返します。 ネームコンポーネント は再帰的に解決されます。 NamingContextOperations.resolve() とほぼ同等の働きをするが、常に与えられた ネームサーバのルートコンテキストに対して resolve() が呼び出される点が 異なります。

パラメータ:
name - 解決すべきオブジェクトの名前のネームコンポーネント
戻り値:
解決されたオブジェクト参照
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - Objectが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

resolve

public org.omg.CORBA.Object resolve(java.lang.String string_name)
                             throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                    org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                    org.omg.CosNaming.NamingContextPackage.InvalidName

文字列表現の Object を name から解決します。 name に bind されているオブジェクト参照を返します。 ネームコンポーネント は再帰的に解決されます。 NamingContextOperations.resolve() とほぼ同等の働きをするが、常に与えられた ネームサーバのルートコンテキストに対して resolve() が呼び出される点が 異なります。

パラメータ:
name - 解決すべきオブジェクトの名前の文字列表現
戻り値:
解決されたオブジェクト参照
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - Objectが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。

unbind

public void unbind(org.omg.CosNaming.NameComponent[] name)
            throws org.omg.CosNaming.NamingContextPackage.NotFound,
                   org.omg.CosNaming.NamingContextPackage.CannotProceed,
                   org.omg.CosNaming.NamingContextPackage.InvalidName

指定された名前のオブジェクトの bind を解除します。 name に bind されているオブジェクト参照を返します。 ネームコンポーネント は再帰的に解決されます。 NamingContextOperations.unbind() とほぼ同等の働きをしますが、常に与えられた ネームサーバのルートコンテキストに対して unbind() が呼び出される点が 異なります。

パラメータ:
name - 解決すべきオブジェクトの名前のネームコンポーネント
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 解除対象のオブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

unbind

public void unbind(java.lang.String string_name)
            throws org.omg.CosNaming.NamingContextPackage.NotFound,
                   org.omg.CosNaming.NamingContextPackage.CannotProceed,
                   org.omg.CosNaming.NamingContextPackage.InvalidName

文字列表現で指定された名前のオブジェクトの bind を解除します。 name に bind されているオブジェクト参照を返します。 ネームコンポーネント は再帰的に解決されます。 NamingContextOperations.unbind() とほぼ同等の働きをするが、常に与えられた ネームサーバのルートコンテキストに対して unbind() が呼び出される点が 異なります。

パラメータ:
string_name - 解決すべきオブジェクトの名前の文字列表現
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 解除対象のオブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

newContext

public org.omg.CosNaming.NamingContext newContext()

新しいコンテキストを生成します。 与えられたネームサーバ上で生成された NamingContext を返します。 返された NamingContext は bind されていません。

戻り値:
生成された新しい NamingContext

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name)
                                               throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                      org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                      org.omg.CosNaming.NamingContextPackage.InvalidName,
                                                      org.omg.CosNaming.NamingContextPackage.AlreadyBound

新しいコンテキストを強制的に bind します。

パラメータ:
name - NamingContextに付ける名前のネームコンポーネント
戻り値:
生成された新しい NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name,
                                                      boolean force)
                                               throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                      org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                      org.omg.CosNaming.NamingContextPackage.InvalidName,
                                                      org.omg.CosNaming.NamingContextPackage.AlreadyBound

新しいコンテキストを bind します。 与えられた name に対して新しいコンテキストをバインドします。 生成された NamingContext はネームサーバ上で生成されたものです。

パラメータ:
name - NamingContextに付ける名前のネームコンポーネント
force - trueの場合、途中のコンテキストを強制的にバインドする
戻り値:
生成された新しい NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name)
                                               throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                      org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                      org.omg.CosNaming.NamingContextPackage.InvalidName,
                                                      org.omg.CosNaming.NamingContextPackage.AlreadyBound

新しいコンテキストを強制的に bind します。 与えられた文字列表現の name に対して新しいコンテキストをバインドします。 生成された NamingContext はネームサーバ上で生成されたものです。

パラメータ:
string_name - NamingContextに付ける名前の文字列表現
戻り値:
生成された新しい NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - string_name の Object がすでにバインドされている。

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name,
                                                      boolean force)
                                               throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                      org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                      org.omg.CosNaming.NamingContextPackage.InvalidName,
                                                      org.omg.CosNaming.NamingContextPackage.AlreadyBound

新しいコンテキストを bind します。 与えられた文字列表現の name に対して新しいコンテキストをバインドします。 生成された NamingContext はネームサーバ上で生成されたものです。

パラメータ:
string_name - NamingContextに付ける名前の文字列表現
force - trueの場合、途中のコンテキストを強制的にバインドする
戻り値:
生成された新しい NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - string_name の Object がすでにバインドされている。

destroy

public void destroy(org.omg.CosNaming.NamingContext context)
             throws org.omg.CosNaming.NamingContextPackage.NotEmpty

NamingContext を非アクティブ化します。 context で指定された NamingContext を非アクティブ化します。 context に他のコンテキストがバインドされている場合は NotEmpty 例外が発生します。

パラメータ:
context - 非アクティブ化する NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotEmpty - 対象コンテキストに他のコンテキストがバインドされている

destroyRecursive

public void destroyRecursive(org.omg.CosNaming.NamingContext context)
                      throws org.omg.CosNaming.NamingContextPackage.NotEmpty,
                             org.omg.CosNaming.NamingContextPackage.NotFound,
                             org.omg.CosNaming.NamingContextPackage.CannotProceed,
                             org.omg.CosNaming.NamingContextPackage.InvalidName

NamingContext を再帰的に下って非アクティブ化します。

パラメータ:
context - 非アクティブ化する NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotEmpty - 対象コンテキストに他のコンテキストがバインドされている
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 context の名前が不正。

clearAll

public void clearAll()
              throws org.omg.CosNaming.NamingContextPackage.NotEmpty,
                     org.omg.CosNaming.NamingContextPackage.NotFound,
                     org.omg.CosNaming.NamingContextPackage.CannotProceed,
                     org.omg.CosNaming.NamingContextPackage.InvalidName

すべての Binding を削除します。

例外:
org.omg.CosNaming.NamingContextPackage.NotEmpty - 対象コンテキストに他のコンテキストがバインドされている
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 の名前が不正。

list

public void list(org.omg.CosNaming.NamingContext name_cxt,
                 long how_many,
                 org.omg.CosNaming.BindingListHolder bl,
                 org.omg.CosNaming.BindingIteratorHolder bi)

与えられた NamingContext の Binding を取得します。

パラメータ:
context - 取得対象の NamingContext
how_many - 取得するBindingの最大数
bl - 取得するBindingのリスト
bi - 取得するBindingのイテレータ

toString

public java.lang.String toString(org.omg.CosNaming.NameComponent[] name)
                          throws org.omg.CosNaming.NamingContextPackage.InvalidName

与えられた NameComponent の文字列表現を返します。

パラメータ:
name - 取得対象の NameComponent
例外:
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

toName

public org.omg.CosNaming.NameComponent[] toName(java.lang.String sname)
                                         throws org.omg.CosNaming.NamingContextPackage.InvalidName

与えられた文字列表現を NameComponent に分解します。

パラメータ:
sname - 分解対象文字列
戻り値:
分解した NameComponent
例外:
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 sname が不正。

toUrl

public java.lang.String toUrl(java.lang.String addr,
                              java.lang.String string_name)
                       throws org.omg.CosNaming.NamingContextExtPackage.InvalidAddress,
                              org.omg.CosNaming.NamingContextPackage.InvalidName

与えられた addre と string_name から URL表現を取得します。

パラメータ:
addr - 取得対象アドレス
string_name - 取得対象名
例外:
org.omg.CosNaming.NamingContextExtPackage.InvalidAddress - 引数 addr が不正。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name が不正。

resolveStr

public org.omg.CORBA.Object resolveStr(java.lang.String string_name)
                                throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                       org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                       org.omg.CosNaming.NamingContextPackage.InvalidName,
                                       org.omg.CosNaming.NamingContextPackage.AlreadyBound

与えられた文字列表現を resolve しオブジェクトを返します。

パラメータ:
string_name - resolve対象文字列
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 対象オブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - string_name の Object がすでにバインドされている。

bindOrResolve

public org.omg.CosNaming.NamingContext bindOrResolve(org.omg.CosNaming.NamingContext context,
                                                     org.omg.CosNaming.NameComponent[] name,
                                                     org.omg.CORBA.Object obj)
                                              throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                     org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                     org.omg.CosNaming.NamingContextPackage.InvalidName

名前をバインドまたは解決します。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 対象オブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

bindOrResolveContext

public org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context,
                                                            org.omg.CosNaming.NameComponent[] name,
                                                            org.omg.CosNaming.NamingContext new_context)
                                                     throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                            org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                            org.omg.CosNaming.NamingContextPackage.InvalidName

名前をバインドまたは解決します。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前
new_context - 関連付けられるNamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 対象オブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

bindOrResolveContext

public org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context,
                                                            org.omg.CosNaming.NameComponent[] name)
                                                     throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                            org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                            org.omg.CosNaming.NamingContextPackage.InvalidName

名前をバインドまたは解決します。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 対象オブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

getNameServer

public final java.lang.String getNameServer()

ネームサーバの名前を取得します。

戻り値:
ネームサーバ名

getRootContext

public org.omg.CosNaming.NamingContext getRootContext()

ルートコンテキストを取得します。

戻り値:
ルートコンテキスト

isNamingContext

public boolean isNamingContext(org.omg.CORBA.Object obj)

オブジェクトがネーミングコンテキストか判別します。

パラメータ:
obj - 判断対象オブジェクト
戻り値:
判断結果

isNamingContext

public boolean isNamingContext(org.omg.CosNaming.NameComponent[] name)
                        throws org.omg.CosNaming.NamingContextPackage.NotFound,
                               org.omg.CosNaming.NamingContextPackage.CannotProceed,
                               org.omg.CosNaming.NamingContextPackage.InvalidName

与えられた名前がネーミングコンテキストかどうか判断します。

パラメータ:
name - 判断対象コンポーネント
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 対象オブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

isNamingContext

public boolean isNamingContext(java.lang.String string_name)
                        throws org.omg.CosNaming.NamingContextPackage.NotFound,
                               org.omg.CosNaming.NamingContextPackage.CannotProceed,
                               org.omg.CosNaming.NamingContextPackage.InvalidName

与えられた名前がネーミングコンテキストかどうか判断します。

パラメータ:
name - 判断対象コンポーネント名称
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 対象オブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

subName

public org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name,
                                                 long begin)

ネームコンポーネントの部分を返します。

パラメータ:
name - 対象コンポーネント名称
begin - 判断開始位置
戻り値:
ネームコンポーネント

subName

public org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name,
                                                 long begin,
                                                 long end)

ネームコンポーネントの部分を返します。

パラメータ:
name - 対象コンポーネント名称
begin - 判断開始位置
end - 判断終了位置
戻り値:
ネームコンポーネント