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 ネームサーバに接続し 以後、このネームサーバのルートコンテキストに対して種々のオペレーション を処理します。 深い階層のネーミングコンテキストの作成やオブジェクトのバインドにおいて、 途中のコンテキストが存在しない場合でも、強制的にコンテキストをバインド し目的のコンテキストやオブジェクトのバインドを行うこともできます。


フィールドの概要
protected  java.lang.String m_nameServer
          ネームサーバ名称
protected  org.omg.CosNaming.NamingContextExt m_rootContext
          ルートコンテキスト
protected  org.omg.CORBA.ORB m_varORB
          ORB
protected  Logbuf rtcout
          Logging用フォーマットオブジェクト
 
コンストラクタの概要
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 する {@.ja CosNaming::bind() とほぼ同等の働きをするが、 常に与えられたネームサーバの ルートコンテキストに対して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 する {@.ja Object を bind する際に与える名前が文字列表現であること以外は、 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)
          @brief 途中のコンテキストを再帰的に bind しながら Object を bind する {@.ja context で与えられた NamingContext に対して、name で指定された ネームコンポーネント を NamingContext として 解決しながら、名前 に対して obj を bind する。
 void clearAll()
          すべての Binding を削除します。
 void destroy(org.omg.CosNaming.NamingContext context)
          NamingContext を非アクティブ化します。
 void destroyRecursive(org.omg.CosNaming.NamingContext context)
          NamingContext を再帰的に下って非アクティブ化します。
protected  int getNameLength(org.omg.CosNaming.NameComponent[] name)
          ネームコンポーネントの文字列表現時の文字長を取得します。
 java.lang.String getNameServer()
          ネームサーバの名前を取得します。
 org.omg.CosNaming.NamingContext getRootContext()
          ルートコンテキストを取得します。
 void init(java.lang.String name_server)
          ネーミングサービスの初期化 指定されたネームサーバ上のネーミングサービスを初期化します。
 boolean isAlive()
           
 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 を取得します。
protected  void nameToString(org.omg.CosNaming.NameComponent[] name, StringHolder string_name, long slen)
          ネームコンポーネントの文字列表現を取得します。
 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 する {@.ja name で指定された Binding がすでに存在する場合を除いて bind() と同じである。
 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 する {@.ja Object を rebind する際に与える名前が文字列表現であること以外は {@.en 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 する {@.ja name で指定された NamingContext もしくは Object が すでに存在する場合を除いて bindRecursive() と同じである。
 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 から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

m_varORB

protected org.omg.CORBA.ORB m_varORB
ORB


m_nameServer

protected java.lang.String m_nameServer
ネームサーバ名称


m_rootContext

protected org.omg.CosNaming.NamingContextExt m_rootContext
ルートコンテキスト


rtcout

protected Logbuf rtcout

Logging用フォーマットオブジェクト

コンストラクタの詳細

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

isAlive

public boolean isAlive()

bind

public void bind(org.omg.CosNaming.NameComponent[] name,
                 org.omg.CORBA.Object obj)
          throws org.omg.CORBA.SystemException,
                 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 がすでにバインドされている。
org.omg.CORBA.SystemException

bind

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

CosNaming::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の場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
org.omg.CORBA.SystemException

bindByString

public void bindByString(java.lang.String string_name,
                         org.omg.CORBA.Object obj)
                  throws org.omg.CORBA.SystemException,
                         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 がすでにバインドされている。
org.omg.CORBA.SystemException

bindByString

public void bindByString(java.lang.String string_name,
                         org.omg.CORBA.Object obj,
                         boolean force)
                  throws org.omg.CORBA.SystemException,
                         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の場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
org.omg.CORBA.SystemException

bindRecursive

public void bindRecursive(org.omg.CosNaming.NamingContext context,
                          org.omg.CosNaming.NameComponent[] name,
                          org.omg.CORBA.Object obj)
                   throws org.omg.CORBA.SystemException,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName,
                          org.omg.CosNaming.NamingContextPackage.AlreadyBound,
                          org.omg.CosNaming.NamingContextPackage.NotFound
@brief 途中のコンテキストを再帰的に 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.CORBA.SystemException
org.omg.CosNaming.NamingContextPackage.NotFound

rebind

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

Object を強制的に rebind します。

パラメータ:
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられるオブジェクト
例外:
org.omg.CORBA.SystemException
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.CORBA.SystemException,
                   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の場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 名前 name が不正
org.omg.CORBA.SystemException

rebindByString

public void rebindByString(java.lang.String string_name,
                           org.omg.CORBA.Object obj)
                    throws org.omg.CORBA.SystemException,
                           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 の名前が不正。
org.omg.CORBA.SystemException

rebindByString

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

Object を rebind する際に与える名前が文字列表現であること以外は {@.en rebind()と同じである。rebind(toName(string_name), obj) と等価。} This is the same as rebind() except as the given name is string representation when object is rebound. rebind(toName(string_name), obj) is the same.

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

rebindRecursive

public void rebindRecursive(org.omg.CosNaming.NamingContext context,
                            org.omg.CosNaming.NameComponent[] name,
                            org.omg.CORBA.Object obj)
                     throws org.omg.CORBA.SystemException,
                            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 - オブジェクトに付ける名前の NameComponent
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.CannotProceed - 途中のコンテキストが解決できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 与えられた name が不正。
org.omg.CORBA.SystemException
org.omg.CosNaming.NamingContextPackage.NotFound

bindContext

public void bindContext(org.omg.CosNaming.NameComponent[] name,
                        org.omg.CosNaming.NamingContext name_cxt)
                 throws org.omg.CORBA.SystemException,
                        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 がすでにバインドされている。
org.omg.CORBA.SystemException

bindContext

public void bindContext(org.omg.CosNaming.NameComponent[] name,
                        org.omg.CosNaming.NamingContext name_cxt,
                        boolean force)
                 throws org.omg.CORBA.SystemException,
                        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 がすでにバインドされている。
org.omg.CORBA.SystemException

bindContext

public void bindContext(java.lang.String string_name,
                        org.omg.CosNaming.NamingContext name_cxt)
                 throws org.omg.CORBA.SystemException,
                        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 がすでにバインドされている。
org.omg.CORBA.SystemException

bindContext

public void bindContext(java.lang.String string_name,
                        org.omg.CosNaming.NamingContext name_cxt,
                        boolean force)
                 throws org.omg.CORBA.SystemException,
                        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 がすでにバインドされている。
org.omg.CORBA.SystemException

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.CORBA.SystemException,
                          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 の名前が不正。
org.omg.CORBA.SystemException

rebindContext

public void rebindContext(org.omg.CosNaming.NameComponent[] name,
                          org.omg.CosNaming.NamingContext name_cxt,
                          boolean force)
                   throws org.omg.CORBA.SystemException,
                          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 の名前が不正。
org.omg.CORBA.SystemException

rebindContext

public void rebindContext(java.lang.String string_name,
                          org.omg.CosNaming.NamingContext name_cxt)
                   throws org.omg.CORBA.SystemException,
                          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 の名前が不正。
org.omg.CORBA.SystemException

rebindContext

public void rebindContext(java.lang.String string_name,
                          org.omg.CosNaming.NamingContext name_cxt,
                          boolean force)
                   throws org.omg.CORBA.SystemException,
                          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 の名前が不正。
org.omg.CORBA.SystemException

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.CORBA.SystemException,
                                    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 の名前が不正。
org.omg.CORBA.SystemException

resolve

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

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

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

unbind

public void unbind(org.omg.CosNaming.NameComponent[] name)
            throws org.omg.CORBA.SystemException,
                   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 の名前が不正。
org.omg.CORBA.SystemException

unbind

public void unbind(java.lang.String string_name)
            throws org.omg.CORBA.SystemException,
                   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 の名前が不正。
org.omg.CORBA.SystemException

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.CORBA.SystemException,
                                                      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 がすでにバインドされている。
org.omg.CORBA.SystemException

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name,
                                                      boolean force)
                                               throws org.omg.CORBA.SystemException,
                                                      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 がすでにバインドされている。
org.omg.CORBA.SystemException

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name)
                                               throws org.omg.CORBA.SystemException,
                                                      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 がすでにバインドされている。
org.omg.CORBA.SystemException

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name,
                                                      boolean force)
                                               throws org.omg.CORBA.SystemException,
                                                      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 がすでにバインドされている。
org.omg.CORBA.SystemException

destroy

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

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

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

destroyRecursive

public void destroyRecursive(org.omg.CosNaming.NamingContext context)
                      throws org.omg.CORBA.SystemException,
                             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 の名前が不正。
org.omg.CORBA.SystemException

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 を取得します。

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

toString

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

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

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

toName

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

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

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

toUrl

public java.lang.String toUrl(java.lang.String addr,
                              java.lang.String string_name)
                       throws org.omg.CORBA.SystemException,
                              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 が不正。
org.omg.CORBA.SystemException

resolveStr

public org.omg.CORBA.Object resolveStr(java.lang.String string_name)
                                throws org.omg.CORBA.SystemException,
                                       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 がすでにバインドされている。
org.omg.CORBA.SystemException

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

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

パラメータ:
string_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 - 判断終了位置
戻り値:
ネームコンポーネント

nameToString

protected void nameToString(org.omg.CosNaming.NameComponent[] name,
                            StringHolder string_name,
                            long slen)

ネームコンポーネントの文字列表現を取得します。

パラメータ:
name - 対象ネームコンポーネント
string_name - 文字列取得結果
slen - 文字列長さ

getNameLength

protected int getNameLength(org.omg.CosNaming.NameComponent[] name)

ネームコンポーネントの文字列表現時の文字長を取得します。

パラメータ:
name - 対象ネームコンポーネント
戻り値:
文字長