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)
           Consructor
CorbaNaming(org.omg.CORBA.ORB orb, java.lang.String name_server)
           Consructor
 
メソッドの概要
 void bind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          Object を bind します。 与えられたネームサーバのルートコンテキストに対して Objectを強制的にbindします。
 void bind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj, boolean force)
           Bind object on specified name component position
 void bindByString(java.lang.String string_name, org.omg.CORBA.Object obj)
          文字列表現の Object を強制的に bind します。 Object を bind する際に与える名前が文字列表現であること以外は、bind() と同じです。bind(toName(string_name), obj) と等価。
 void bindByString(java.lang.String string_name, org.omg.CORBA.Object obj, boolean force)
           Bind object on specified string name position
 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 します。 bind されるオブジェクトが 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 します。 bind されるオブジェクトが NamingContext であることを除いて bind() と同じです。
 void bindContextRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
          NamingContext を 再帰的に bind します。 bind されるオブジェクトが NamingContext であることを除いて bindRecursive() と同じです。
 org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name)
          新しいコンテキストを強制的に bind します。
 org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name, boolean force)
          新しいコンテキストを bind します。 与えられた name に対して新しいコンテキストをバインドします。 生成された NamingContext はネームサーバ上で生成されたものです。
 org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name)
          新しいコンテキストを強制的に bind します。 与えられた文字列表現の name に対して新しいコンテキストをバインドします。 生成された NamingContext はネームサーバ上で生成されたものです。
 org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name, boolean force)
          新しいコンテキストを bind します。 与えられた文字列表現の name に対して新しいコンテキストをバインドします。 生成された NamingContext はネームサーバ上で生成されたものです。
 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 intermediate context recursively and bind object
 void clearAll()
          すべての Binding を削除します。
 void destroy(org.omg.CosNaming.NamingContext context)
          NamingContext を非アクティブ化します。 context で指定された NamingContext を非アクティブ化します。 context に他のコンテキストがバインドされている場合は NotEmpty 例外が発生します。
 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)
           Initialize the Naming Service
 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()
          新しいコンテキストを生成します。 与えられたネームサーバ上で生成された NamingContext を返します。 返された NamingContext は bind されていません。
 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)
           Rebind object
 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)
           @brief Rebind Object
 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 します。 name で指定されたコンテキストがすでに存在する場合を除いて bindContext() と同じです。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられます。
 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 します。 name で指定されたコンテキストがすでに存在する場合を除いて bindContext() と同じです。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられます。
 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 intermediate context recursively and rebind object
 org.omg.CORBA.Object resolve(org.omg.CosNaming.NameComponent[] name)
          Object を name から解決します。 name に bind されているオブジェクト参照を返します。 ネームコンポーネント
 org.omg.CORBA.Object resolve(java.lang.String string_name)
          文字列表現の Object を name から解決します。 name に bind されているオブジェクト参照を返します。 ネームコンポーネント
 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 を解除します。 name に bind されているオブジェクト参照を返します。 ネームコンポーネント
 void unbind(java.lang.String string_name)
          文字列表現で指定された名前のオブジェクトの bind を解除します。 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)
Consructor

パラメータ:
orb - ORB

CorbaNaming

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

パラメータ:
orb - ORB
name_server - Name of the name server
例外:
java.lang.Exception
メソッドの詳細

init

public void init(java.lang.String name_server)
          throws java.lang.Exception
Initialize the Naming Service

Initialize the Naming Service on the specified name server.

パラメータ:
name_server - Name of the 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
Bind object on specified name component position

Almost the same operation as CosNaming::bind(), but there is a difference that bind() is invoked for the root context of the given name server. Bind between Name and Object on this NamingContext. If c_n indicates the n-th of NameComponent, when name consists of n pieces of NameComponent, it is handled as follows. cxt->bind(, obj) is the same as the following operation. cxt->resolve()->bind(, obj) In other word, resolve from the first to the (n-1)th context and bind obj as name on the (n-1)th context. NemingContext of for resolving name must be already bound in bindContext() or rebindContext(). If NamingContext of does not exist, NotFound excption will occur. However, when flag of forced bind is true, even if does not exist, finally obj will be bound to name name by binding to the context recursively. Even in any case, if the object of name (Object or context) is bound on the (n-1)th context, AlreadyBound exception will occur.

パラメータ:
name - NameComponent of name applied to object
obj - Object that is associated
force - force If true, the intermediate context is bound forcibly. (The default value:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
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
Bind object on specified string name position

This is the same as bind() except as the given name is string representation when Object is bound. bind(toName(string_name),obj) is the same.

パラメータ:
string_name - The string representation of name applied to object
obj - Object that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
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
Bind intermediate context recursively and bind object

For NamingContext given in context, bind obj to name with solving name component specified by name as NamingContext. Bind new NamingContext when there is no NamingContext corresponding to c_(n-1) >. Finally, NamingContext corresponding to will be generated, or CosNaming::bind(, object) will be invoked after solving. At this time, if the binding already exists, the AlreadyBound exception will occur. During process, when Binding that is not NamingContext of the same name as the context for solving exists, CannotProceed exception will occur and stop processing.

パラメータ:
context - NamingContext that starts the bind
name - NameComponent of name applied to object
obj - Object that is associated
例外:
org.omg.CosNaming.NamingContextPackage.CannotProceed - Since one of NamingContext corresponding to is already bound to object other than NamingContext and processing cannot be continued
org.omg.CosNaming.NamingContextPackage.InvalidName - name 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
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
Rebind object

This is the same as bind() except as Binding specified by name already exists. If the binding already exists, new binding will be replaced.

パラメータ:
name - NameComponent of name applied to object
obj - Object that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - Name 'name' is invalid.
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
@brief Rebind Object

パラメータ:
string_name - NameComponent of name applied to object
obj - Object that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - Name The argument 'name' is invalid.
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 intermediate context recursively and rebind object

This is the same as bindRecursive() except as NamingContext or Object specified by name already exists. If the binding specified by name already exists, new binding will be replaced.

パラメータ:
context - NamingContext that starts the bind
name - NameComponent of name applied to object
obj - Object that is associated
例外:
org.omg.CosNaming.NamingContextPackage.CannotProceed - The intermediate context cannot resolved.
org.omg.CosNaming.NamingContextPackage.InvalidName - The given name is invalid.
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 - 対象ネームコンポーネント
戻り値:
文字長