All Packages  Class Hierarchy  This Package  Previous  Next  Index


Class COM.ibm.CORBA.iiop.ORB

java.lang.Object
   |
   +----COM.omg.CORBA.ORB
           |
           +----COM.ibm.CORBA.iiop.ORB


public class ORB
extends ORB

The ORB class provides the standard CORBA ORB interfaces that allow CORBA interoperability using the Internet Interoperable Object Protocol (IIOP) for communication.


Variable Index

o buffersize
o communicationTimeOut
o delegate
o globalORB
o mainDebugFlag
o objectResolver
o serverName
o serverORB
o serverPort
o singletonORB
o socket
o thisORB

Constructor Index

o ORB()

Method Index

o connect(Object)
Allows a servant skeleton to be registered with the ORB
o debug()
Returns the status of the main debug flag
o debugOff()
Turns off the global debug flag
o debugOn()
Turns on the global debug flag
o disconnect(Object)
Removes a servant skeleton from the ORB
o getImpl(String)
Returns the object specified by the string
o getObjectResolver()
Returns the current ObjectResolver
o init()
Default (singleton) init
o init(Applet, Properties)
Applet or Application init
o init(String[], Properties)
Application init allows an application to create and initialize an ORB.
o object_to_string(Object)
Returns an IOR stringified reference that represents the object
o objectToURL(Object, String)
Returns an URL that refers to the object specified
o openDebugFile(String)
Turns debug on redirecting the output to the file name specified
o resolve(String, String)
Returns an Object implementation of the class name specified using the ID specified to reference the object.
o set_parameters(Applet, Properties)
Implemented by subclassed ORB implementations and called by init methods to pass in their params
o set_parameters(String[], Properties)
Implemented by subclassed ORB implementations and called by init methods to pass in their params
o setDebugFlag()
Turns on the flag for the client side ORB if the Debug.JIE file exist in the c:\ directory.
o setObjectResolver(ObjectResolver)
Allows the resolver to be set after the ORB has been initialized.
o setServerDebugFlag()
Turns on the flag for the server side ORB if the Debug.JIE file exist in the c:\ directory.
o string_to_object(String)
Returns an object that is represented by the String
o URLToObject(String)
Returns an object that is referenced by the URL specified

Variables

o mainDebugFlag

 public static boolean mainDebugFlag

o globalORB

 public static ORB globalORB

o thisORB

 public ORB thisORB

o singletonORB

 public static ORB singletonORB

o objectResolver

 public ObjectResolver objectResolver

o serverName

 public static String serverName

o serverPort

 public int serverPort

o serverORB

 public boolean serverORB

o buffersize

 public static int buffersize
Set buffersize to fit the requirements of your application.  If you have large pieces of data increase your buffersize.  If you have small or infrequent data, you may want to decrease the buffer size. The default setting is 256 bytes.

o communicationTimeOut

 public static int communicationTimeOut
    The communicationTimeOut is how long the ORB will exist without any response to it. To get the equivalent time in millisecs multiply by 200.  The default setting is 15,000 or 5 minutes.
 

Constructors

o ORB

 public ORB()

Methods

o init

 public static ORB init(String args[],
                        Properties props)
Application init allows an application to create and initialize an ORB.
Parameters:
args - ORB specific arguments from the main
props - ORB specific properties
  Client activation properties
      Name            Description
      --------------------------------------------------------
      server          server name
      port            port number
      servlet         servlet name to be loaded by HTTP
      debug           set to true enables debug
  Server activation properties
      Name            Description
      --------------------------------------------------------
      inputStream     input stream connected to client
      outputStream    output stream connected to client
      resolverObject  Object resolver specified by application
      socket          socket connected to the client

o setDelegate

 public void setDelegate(ORB orb,
                         int streamType)

o getDelegate

 public Delegate getDelegate()

o init

 public static ORB init(Applet applet,
                        Properties props)
Applet or Application init
Parameters:
applet - applet loaded by HTML page
props - ORB specific properties
  Client activation properties
      Name            Description
      --------------------------------------------------------
      server          server name
      port            port number
      servlet         servlet name to be loaded by HTTP
      debug           set to true enables debug

o init

 public static ORB init()
Default (singleton) init

o openDebugFile

 public static void openDebugFile(String name)
Turns debug on redirecting the output to the file name specified
Parameters:
name - file name to redirect output

o debugOn

 public static void debugOn()
Turns on the global debug flag

o debugOff

 public static void debugOff()
Turns off the global debug flag

o debug

 public static boolean debug()
Returns the status of the main debug flag

o setDebugFlag

 public static boolean setDebugFlag()
Turns on the flag for the client side ORB if the Debug.JIE file exist in the c:\ directory. If the file is empty the output will go to stdout. If a the file contains a name the debug will be written to name.server

o setServerDebugFlag

 public static boolean setServerDebugFlag()
Turns on the flag for the server side ORB if the Debug.JIE file exist in the c:\ directory. If the file is empty the output will go to stdout. If a the file contains a name the debug will be written to name.server

o URLToObject

 public Object URLToObject(String bcURL)
Returns an object that is referenced by the URL specified
Parameters:
bcURL - URL string that follows one of the specific schemes specified in the URLToObject specification.

o objectToURL

 public String objectToURL(Object object,
                           String scheme)
Returns an URL that refers to the object specified
Parameters:
object - target object

o set_parameters

 protected void set_parameters(String args[],
                               Properties props)
Implemented by subclassed ORB implementations and called by init methods to pass in their params
Overrides:
set_parameters in class ORB

o set_parameters

 protected void set_parameters(Applet applet,
                               Properties props)
Implemented by subclassed ORB implementations and called by init methods to pass in their params
Overrides:
set_parameters in class ORB

o getImpl

 public Object getImpl(String str)
Returns the object specified by the string
Parameters:
str - specifies the ID of the object

o resolve

  public Object resolve(String instanceName,
                       String className)

Returns an Object implementation of the class name specified using the ID specified to reference the object.
Parameters:
instanceName - object ID
className - base interface name of the ImplBase object

o object_to_string

 public String object_to_string(Object obj)
Returns an IOR stringified reference that represents the object
Parameters:
obj - target object
Overrides:
object_to_string in class ORB

o string_to_object

 public Object string_to_object(String str)
Returns an object that is represented by the String
Overrides:
string_to_object in class ORB

o connect

 public void connect(Object obj)
Allows a servant skeleton to be registered with the ORB
Parameters:
obj - servant skeleton
Overrides:
connect in class ORB

o disconnect

 public void disconnect(Object obj)
Removes a servant skeleton from the ORB
Parameters:
obj - servant skeleton
Overrides:
disconnect in class ORB

o setObjectResolver

 public void setObjectResolver(ObjectResolver resolver)
Allows the resolver to be set after the ORB has been initialized. The implementation must call COM.ibm.CORBA.ORB.setObjectResolver(ObjectResolver); to register the ObjectResolver with the ORB.

o getObjectResolver

 public ObjectResolver getObjectResolver()
Returns the current ObjectResolver

Unsupported ORB Methods in release 1

 public NVList create_list(int count)
 public NVList create_operation_list(OperationDef oper)
 public NamedValue create_named_value(String name, Any value, int flags)
 public ExceptionList create_exception_list()
 public ContextList create_context_list()
 public Context get_default_context()
 public Environment create_environment()
 public void send_multiple_requests_oneway(Request req[])
 public void sent_multiple_requests_deferred(Request req[])
 public boolean poll_next_response()
 public Request get_next_response()
 public TypeCode create_struct_tc(String id, String name, StructMember members[])
 public TypeCode create_union_tc(String id, String name, TypeCode discriminator_type, UnionMember members[])
 public TypeCode create_enum_tc(String id, String name, EnumMember members[])
 public TypeCode create_alias_tc(String id, String name, TypeCode original_type)
 public TypeCode create_exception_tc(String id, String name, StructMember members[])
 public TypeCode create_interface_tc(String id, String name)
 public TypeCode create_string_tc(int bound)
 public TypeCode create_wstring_tc(int bound)
 public TypeCode create_sequence_tc(int bound, TypeCode element_type)
 public TypeCode create_recursive_sequence_tc(int bound, int offset)
 public TypeCode create_array_tc(int length, TypeCode element_type)
 public Current get_current()
 public TypeCode get_primitive_tc(TCKind tcKind)
 public Any create_any()
 public String[] list_initial_services()
 public Object resolve_initial_references(String object_name) throws InvalidName


All Packages  Class Hierarchy  This Package  Previous  Next  Index