Package com.arjuna.orbportability
Class ORB
java.lang.Object
com.arjuna.orbportability.ORB
An attempt at some ORB portable ways of interacting with the ORB. NOTE:
initORB *must* be called if you want to use the pre- and post- initialisation
mechanisms.
- Since:
- JTS 1.0.
- Version:
- $Id: ORB.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com), Richard Begg (richard.begg@arjuna.com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
void
destroy()
static ORB
getInstance
(String uniqueId) Retrieve an ORB instance given a unique name, if an ORB instance with this name doesn't exist then create it.void
initORB()
Initialise the default ORB.void
initORB
(Applet a, Properties p) Initialise the ORB.void
initORB
(String[] s, Properties p) Initialise the ORB.org.omg.CORBA.ORB
orb()
Obtain a reference to the current ORB.boolean
setOrb
(org.omg.CORBA.ORB theORB) void
setORBShutdownListener
(ORBShutdownListener orbShutdownListener) void
shutdown()
Shutdown the ORB asynchronously.void
shutdown
(boolean waitForCompletion) Shutdown the ORB.
-
Constructor Details
-
ORB
-
-
Method Details
-
initORB
public void initORB() throws org.omg.CORBA.SystemExceptionInitialise the default ORB.- Throws:
org.omg.CORBA.SystemException
-
initORB
Initialise the ORB.- Throws:
org.omg.CORBA.SystemException
-
initORB
Initialise the ORB.- Throws:
org.omg.CORBA.SystemException
-
addAttribute
-
shutdown
public void shutdown()Shutdown the ORB asynchronously. -
shutdown
public void shutdown(boolean waitForCompletion) Shutdown the ORB. Define whether this should be sync or async. -
orb
public org.omg.CORBA.ORB orb()Obtain a reference to the current ORB. -
setOrb
public boolean setOrb(org.omg.CORBA.ORB theORB) -
addPreShutdown
-
addPostShutdown
-
destroy
public void destroy() throws org.omg.CORBA.SystemException- Throws:
org.omg.CORBA.SystemException
-
getInstance
Retrieve an ORB instance given a unique name, if an ORB instance with this name doesn't exist then create it.- Parameters:
uniqueId
- The name of the ORB instance to retrieve.- Returns:
- The ORB instance refered to by the name given.
-
setORBShutdownListener
-