xmlBlaster 2.1.0 API

org.xmlBlaster.util.protocol.corba
Class OrbInstanceWrapper

java.lang.Object
  extended by org.xmlBlaster.util.protocol.corba.OrbInstanceWrapper

public class OrbInstanceWrapper
extends java.lang.Object

OrbInstanceWrapper wraps an org.omg.CORBA.ORB instance/singleton in Global scope. The first call to getOrb() creates an ORB and following calls increment a reference counter. Calls to shutdown() reduce the reference counter. If the counter reaches 0 the orb is destroyed.


Field Summary
private  Global glob
           
private  java.lang.String ME
           
private  org.omg.CORBA.ORB orb
           
private  int referenceCounter
           
 
Constructor Summary
OrbInstanceWrapper(Global glob)
           
 
Method Summary
 org.omg.CORBA.ORB getOrb(java.lang.String[] args, java.util.Properties props, AddressBase address)
          On first call an orb is created, further calls return the same orb instance.
 void releaseOrb(boolean wait_for_completion)
          When the same amount releasOrb() is called as getOrb(), the internal orb is shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ME

private java.lang.String ME

glob

private Global glob

orb

private org.omg.CORBA.ORB orb

referenceCounter

private int referenceCounter
Constructor Detail

OrbInstanceWrapper

public OrbInstanceWrapper(Global glob)
Method Detail

getOrb

public org.omg.CORBA.ORB getOrb(java.lang.String[] args,
                                java.util.Properties props,
                                AddressBase address)
On first call an orb is created, further calls return the same orb instance.

Parameters:
glob -
args - command line args, see org.omg.CORBA.ORB.init(), use glob.getProperty().getProperties()
props - application-specific properties; may be null, see org.omg.CORBA.ORB.init(String[], Properties)
address - The configuration of the address
Returns:
Access to a new created orb handle
See Also:
ORB.init(String[], Properties)

releaseOrb

public void releaseOrb(boolean wait_for_completion)
When the same amount releasOrb() is called as getOrb(), the internal orb is shutdown.


xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.