ORB(クライアント/サーバ間の通信を仲介する機能:Object Request Broker)の初期化などを行うための基本的なインタフェースを提供するORBクラスについて説明します。
CORBAサービス(ObjectDirector)およびIIOPサービス(Java EE 6/Java EE 7のCORBAサービスアプリケーション呼出し)がORBクラスでサポートしているAPIを以下に示します。
API名 | CORBAサービス | IIOPサービス |
|---|---|---|
org.omg.CORBA.ORB.init() | ○ | ○ |
org.omg.CORBA.ORB.list_initial_services() | ○ | ○ |
org.omg.CORBA.ORB.resolve_initial_references() | ○ | ○ |
org.omg.CORBA.ORB.resolve_initial_references_remote() | ○(Fujitsu固有) | - |
org.omg.CORBA.ORB.object_to_string() | ○ | ○ |
org.omg.CORBA.ORB.string_to_object() | ○ | ○ |
org.omg.CORBA.ORB.create_list() | ○ | × |
org.omg.CORBA.ORB.create_operation_list() | ○ | × |
org.omg.CORBA.ORB.create_named_value() | ○ | × |
org.omg.CORBA.ORB.create_exception_list() | ○ | × |
org.omg.CORBA.ORB.create_context_list() | ○ | × |
org.omg.CORBA.ORB.get_default_context() | ○ | × |
org.omg.CORBA.ORB.create_environment() | ○ | × |
org.omg.CORBA.ORB.send_multiple_requests_oneway() | ○ | × |
org.omg.CORBA.ORB.send_multiple_requests_deferred() | ○ | × |
org.omg.CORBA.ORB.poll_next_response() | ○ | × |
org.omg.CORBA.ORB.get_next_response() | ○ | × |
org.omg.CORBA.ORB.get_primitive_tc() | ○ | ○ |
org.omg.CORBA.ORB.create_any() | ○ | ○ |
org.omg.CORBA.ORB.run() | ○ | × |
org.omg.CORBA.ORB.destroy() | ○(Portable-ORBだけ) | ○ |
org.omg.CORBA.ORB.create_array_tc() | ○ | ○ |
org.omg.CORBA.ORB.create_enum_tc() | ○ | ○ |
org.omg.CORBA.ORB.create_exception_tc() | ○ | ○ |
org.omg.CORBA.ORB.create_sequence_tc() | ○ | ○ |
org.omg.CORBA.ORB.create_string_tc() | ○ | ○ |
org.omg.CORBA.ORB.create_struct_tc() | ○ | ○ |
org.omg.CORBA.ORB.create_union_tc() | ○ | ○ |
org.omg.CORBA.ORB.create_wstring_tc() | ○ | ○ |
//Java
package org.omg.CORBA;
public abstract class ORB
{
public static org.omg.CORBA.ORB
init(java.lang.String[] args, java.util.Properties props){...};
public static org.omg.CORBA.ORB
init(java.applet.Applet app, java.util.Properties props){...};
public static org.omg.CORBA.ORB init( ){...};
public abstract java.lang.String[] list_initial_services( );
public abstract org.omg.CORBA.Object
resolve_initial_references(java.lang.String object_name)
throws org.omg.CORBA.ORBPackage.InvalidName;
public abstract java.lang.String object_to_string(org.omg.CORBA.Object obj);
public abstract org.omg.CORBA.Object string_to_object(java.lang.String str);
public abstract org.omg.CORBA.NVList create_list(int count);
public abstract org.omg.CORBA.NVList
create_operation_list(org.omg.CORBA.OperationDef oper);
public abstract org.omg.CORBA.NamedValue
create_named_value(java.lang.String name, Any value, int flags);
public abstract org.omg.CORBA.ExceptionList create_exception_list( );
public abstract org.omg.CORBA.ContextList create_context_list( );
public abstract org.omg.CORBA.Context get_default_context( );
public abstract org.omg.CORBA.Environment create_environment( );
public abstract void send_multiple_requests_oneway(org.omg.CORBA.Request[] req);
public abstract void sent_multiple_requests_deferred(org.omg.CORBA.Request[] req);
public abstract boolean poll_next_response( );
public abstract org.omg.CORBA.Request get_next_response( );
public abstract org.omg.CORBA.TypeCode get_primitive_tc(org.omg.CORBA.TCKind tcKind);
public abstract org.omg.CORBA.Any create_any( );
public void run( );
public void destroy( );
abstract public org.omg.CORBA.TypeCode
create_array_tc(int length, org.omg.CORBA.TypeCode element_type);
abstract public org.omg.CORBA.TypeCode
create_enum_tc(java.lang.String id, java.lang.String name, java.lang.String[] members);
abstract public org.omg.CORBA.TypeCode
create_exception_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.StructMember[] members);
abstract public org.omg.CORBA.TypeCode
create_sequence_tc(int bound, org.omg.CORBA.TypeCode element_type);
abstract public org.omg.CORBA.TypeCode
create_string_tc(int bound);
abstract public org.omg.CORBA.TypeCode
create_struct_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.StructMember[] members);
abstract public org.omg.CORBA.TypeCode
create_union_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.TypeCode discriminator_type, org.omg.CORBA.UnionMember[] members);
abstract public org.omg.CORBA.TypeCode
create_wstring_tc(int bound);
}