jBrokerTM ORB 4.1

org.omg.CORBA
Class ORB

java.lang.Object
  |
  +--org.omg.CORBA.ORB
Direct Known Subclasses:
ORB

public abstract class ORB
extends Object

This class provides the APIs for the OMG CORBA Object Request Broker.

The ORB is created by using one of the static init methods. The following ORB Properties are supported by JBroker.

ORB Property
Description
Default value
org.omg.CORBA.ORBClass
class name of an ORB implementation.
com.sssw.jbroker.ORB
org.omg.CORBA.ORBSingletonClass
class name of the ORB returned by init().
com.sssw.jbroker.orb.SingletonORB
ORBDefaultInitRef
The IIOP URL of the Initialization Agent from which to obtain the initial service references like the "NameService".
iiopboot://localhost:2506
ORBHost
Specify the name of the host on which you to listen for connections. This is useful for atleast the following two situations. 
  • On multi-homed hosts, you may want your server to only listen for requests from a particular network interface.

  •  
  • Sometime, it is impossible to determine the domain name of a machine using the Java APIs. If you expect to hand out the object references outside of your local domain, it is a good idea to use this property and specify the complete hostname.
Default is to listen on all network interfaces, and to use the hostname returned by the Java APIs.
ORBPort
The port on which to listen for connections. System choosen ephemeral port.
ORBServerAlias
The alias of a registered Server. It is only necessary to specify this property for server with persistent objects that are manually started. There is no default. If you manually start your server without this property, persistent object support is disabled.
ORBUseGateway
This is a boolean property. 
The property should only be used for client programs. It tell the client to use a IIOP Connection Concentrator to communicate with others.
False
ORBThreadPoolMax
The maximum number of threads in the Thread Pool.
20
ORBThreadPoolTimeout
The time in seconds after which an idle thread sitting in the Thread pool times out and dies releasing thread related system resources.
300
ORBNamesDBDirectory
The directory under which a user created in-process persistent NameService maintains its state. db/names under the install directory.
JBroker ORB Properties


Constructor Summary
ORB()
           
 
Method Summary
 void connect(Object obj)
           
 TypeCode create_abstract_interface_tc(String id, String name)
           
abstract  TypeCode create_alias_tc(String id, String name, TypeCode original_type)
           
abstract  Any create_any()
           
abstract  TypeCode create_array_tc(int length, TypeCode element_type)
           
 DynAny create_basic_dyn_any(TypeCode type)
           
abstract  ContextList create_context_list()
           
 DynAny create_dyn_any(Any value)
           
 DynArray create_dyn_array(TypeCode type)
           
 DynEnum create_dyn_enum(TypeCode type)
           
 DynSequence create_dyn_sequence(TypeCode type)
           
 DynStruct create_dyn_struct(TypeCode type)
           
 DynUnion create_dyn_union(TypeCode type)
           
abstract  TypeCode create_enum_tc(String id, String name, String[] members)
           
abstract  Environment create_environment()
           
abstract  ExceptionList create_exception_list()
           
abstract  TypeCode create_exception_tc(String id, String name, StructMember[] members)
           
 TypeCode create_fixed_tc(short digits, short scale)
           
abstract  TypeCode create_interface_tc(String id, String name)
           
abstract  NVList create_list(int count)
           
abstract  NamedValue create_named_value(String s, Any any, int flags)
           
 TypeCode create_native_tc(String id, String name)
           
 NVList create_operation_list(Object oper)
           
abstract  OutputStream create_output_stream()
           
 Policy create_policy(int type, Any val)
           
abstract  TypeCode create_recursive_sequence_tc(int bound, int offset)
           
 TypeCode create_recursive_tc(String id)
           
abstract  TypeCode create_sequence_tc(int bound, TypeCode element_type)
           
abstract  TypeCode create_string_tc(int bound)
           
abstract  TypeCode create_struct_tc(String id, String name, StructMember[] members)
           
abstract  TypeCode create_union_tc(String id, String name, TypeCode discriminator_type, UnionMember[] members)
           
 TypeCode create_value_box_tc(String id, String name, TypeCode boxed_type)
           
 TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members)
           
abstract  TypeCode create_wstring_tc(int bound)
           
 void disconnect(Object obj)
           
 Current get_current()
           
abstract  Context get_default_context()
           
abstract  Request get_next_response()
           
abstract  TypeCode get_primitive_tc(TCKind tcKind)
           
 boolean get_service_information(short service_type, ServiceInformationHolder service_info)
           
static ORB init()
           
static ORB init(Applet app, Properties props)
           
static ORB init(String[] args, Properties props)
           
abstract  String[] list_initial_services()
           
abstract  String object_to_string(Object obj)
           
 void perform_work()
           
abstract  boolean poll_next_response()
           
abstract  Object resolve_initial_references(String object_name)
           
 void run()
           
abstract  void send_multiple_requests_deferred(Request[] req)
           
abstract  void send_multiple_requests_oneway(Request[] req)
           
 void shutdown(boolean wait_for_completion)
           
abstract  Object string_to_object(String str)
           
 boolean work_pending()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ORB

public ORB()
Method Detail

init

public static ORB init()

init

public static ORB init(String[] args,
                       Properties props)

init

public static ORB init(Applet app,
                       Properties props)

connect

public void connect(Object obj)

disconnect

public void disconnect(Object obj)

list_initial_services

public abstract String[] list_initial_services()

resolve_initial_references

public abstract Object resolve_initial_references(String object_name)
                                           throws InvalidName

object_to_string

public abstract String object_to_string(Object obj)

string_to_object

public abstract Object string_to_object(String str)

create_list

public abstract NVList create_list(int count)

create_operation_list

public NVList create_operation_list(Object oper)

create_named_value

public abstract NamedValue create_named_value(String s,
                                              Any any,
                                              int flags)

create_exception_list

public abstract ExceptionList create_exception_list()

create_context_list

public abstract ContextList create_context_list()

get_default_context

public abstract Context get_default_context()

create_environment

public abstract Environment create_environment()

create_output_stream

public abstract OutputStream create_output_stream()

send_multiple_requests_oneway

public abstract void send_multiple_requests_oneway(Request[] req)

send_multiple_requests_deferred

public abstract void send_multiple_requests_deferred(Request[] req)

poll_next_response

public abstract boolean poll_next_response()

get_next_response

public abstract Request get_next_response()
                                   throws WrongTransaction

get_primitive_tc

public abstract TypeCode get_primitive_tc(TCKind tcKind)

create_struct_tc

public abstract TypeCode create_struct_tc(String id,
                                          String name,
                                          StructMember[] members)

create_union_tc

public abstract TypeCode create_union_tc(String id,
                                         String name,
                                         TypeCode discriminator_type,
                                         UnionMember[] members)

create_enum_tc

public abstract TypeCode create_enum_tc(String id,
                                        String name,
                                        String[] members)

create_alias_tc

public abstract TypeCode create_alias_tc(String id,
                                         String name,
                                         TypeCode original_type)

create_exception_tc

public abstract TypeCode create_exception_tc(String id,
                                             String name,
                                             StructMember[] members)

create_interface_tc

public abstract TypeCode create_interface_tc(String id,
                                             String name)

create_string_tc

public abstract TypeCode create_string_tc(int bound)

create_wstring_tc

public abstract TypeCode create_wstring_tc(int bound)

create_sequence_tc

public abstract TypeCode create_sequence_tc(int bound,
                                            TypeCode element_type)

create_recursive_sequence_tc

public abstract TypeCode create_recursive_sequence_tc(int bound,
                                                      int offset)

create_array_tc

public abstract TypeCode create_array_tc(int length,
                                         TypeCode element_type)

create_native_tc

public TypeCode create_native_tc(String id,
                                 String name)

create_abstract_interface_tc

public TypeCode create_abstract_interface_tc(String id,
                                             String name)

create_fixed_tc

public TypeCode create_fixed_tc(short digits,
                                short scale)

create_value_tc

public TypeCode create_value_tc(String id,
                                String name,
                                short type_modifier,
                                TypeCode concrete_base,
                                ValueMember[] members)

create_recursive_tc

public TypeCode create_recursive_tc(String id)

create_value_box_tc

public TypeCode create_value_box_tc(String id,
                                    String name,
                                    TypeCode boxed_type)

create_any

public abstract Any create_any()

get_current

public Current get_current()

run

public void run()

shutdown

public void shutdown(boolean wait_for_completion)

work_pending

public boolean work_pending()

perform_work

public void perform_work()

get_service_information

public boolean get_service_information(short service_type,
                                       ServiceInformationHolder service_info)

create_dyn_any

public DynAny create_dyn_any(Any value)

create_basic_dyn_any

public DynAny create_basic_dyn_any(TypeCode type)
                            throws InconsistentTypeCode

create_dyn_struct

public DynStruct create_dyn_struct(TypeCode type)
                            throws InconsistentTypeCode

create_dyn_sequence

public DynSequence create_dyn_sequence(TypeCode type)
                                throws InconsistentTypeCode

create_dyn_array

public DynArray create_dyn_array(TypeCode type)
                          throws InconsistentTypeCode

create_dyn_union

public DynUnion create_dyn_union(TypeCode type)
                          throws InconsistentTypeCode

create_dyn_enum

public DynEnum create_dyn_enum(TypeCode type)
                        throws InconsistentTypeCode

create_policy

public Policy create_policy(int type,
                            Any val)
                     throws PolicyError

jBrokerTM ORB 4.1

jBroker is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.