org.mobicents.slee.resource.parlay.util.corba
Class ORBHandler

java.lang.Object
  extended by org.mobicents.slee.resource.parlay.util.corba.ORBHandler
All Implemented Interfaces:
java.lang.Runnable

public class ORBHandler
extends java.lang.Object
implements java.lang.Runnable

This class handles ORB initialisation and shutdown. Accessor methods are provided for the ORB resources.


Method Summary
static ORBHandler getInstance()
           
 boolean getIsServerReady()
          Find out whether this thread is ready for use
 org.omg.CORBA.ORB getOrb()
          Gets the GlobalOrb attribute.
 java.util.Properties getOrbProperties()
           
 org.omg.PortableServer.POA getRootPOA()
          Returns the Root POA
 void init()
           
 void run()
          Code to execute when thread is started.
 void setOrbProperties(java.util.Properties orbProperties)
           
 void shutdown()
          Shutdown the ORB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ORBHandler getInstance()
                              throws java.io.IOException
Throws:
java.io.IOException

init

public void init()
          throws org.omg.CORBA.UserException
Throws:
org.omg.CORBA.UserException

run

public void run()
Code to execute when thread is started.

Specified by:
run in interface java.lang.Runnable

getIsServerReady

public boolean getIsServerReady()
Find out whether this thread is ready for use

Returns:
true is this thread is up and ready

getOrb

public org.omg.CORBA.ORB getOrb()
Gets the GlobalOrb attribute. This should really be a non static method and this class be a singleton.

Returns:
The GlobalOrb value

getRootPOA

public org.omg.PortableServer.POA getRootPOA()
Returns the Root POA

Returns:

getOrbProperties

public java.util.Properties getOrbProperties()
Returns:

shutdown

public void shutdown()
Shutdown the ORB


setOrbProperties

public void setOrbProperties(java.util.Properties orbProperties)
Parameters:
orbProperties - The orbProperties to set.


Copyright © 2008. All Rights Reserved.