|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.slac.aida.lib.util.common._DaObjectBase
public class _DaObjectBase
Handles CORBA initialization and initial references to the AIDA
Name Server for the AIDA data access API DaObject
class hierarchy. It contains only low level ORB connection and
initialisation for non-persistent AIDA objects.
Field Summary | |
---|---|
static java.lang.String[][] |
DAO_PROPS
CORBA Properties that are passed to ORB.init() to initialise the ORB. |
protected org.omg.PortableServer.POA |
m_consumerPOA
|
protected static edu.stanford.slac.err.Err |
m_err
|
protected org.omg.CosEventChannelAdmin.EventChannel |
m_event_channel
|
org.omg.CORBA.ORB |
m_orb
Internal CORBA ORB associated with this Data Access Object |
protected org.omg.PortableServer.POAManager |
m_POA_manager
|
protected java.util.Properties |
m_props
|
protected org.omg.PortableServer.POA |
m_rootPOA
|
Constructor Summary | |
---|---|
_DaObjectBase()
No arg Constructor (for when there are no CORBA parameters to override). |
|
_DaObjectBase(java.lang.String[] args)
Constructor with corba argument list. |
|
_DaObjectBase(java.lang.String[] args,
boolean events)
Constructs a _DaObjectBase including EventService initialization if desired |
|
_DaObjectBase(java.lang.String[] args,
java.lang.String childPersistentPOAName)
Constructor with CORBA argument list and given Portable Object Adapter (POA). |
|
_DaObjectBase(java.lang.String[] args,
java.lang.String childPersistentPOAName,
boolean events)
Constructs a _DaObjectBase without EventService |
Method Summary | |
---|---|
void |
EventConnect(org.omg.CosEventComm.PushConsumer consumer)
Connects given consumer to the Event Service. |
java.lang.String |
getNameServerIOR()
Get the AIDA Name Server's Interoperable Object Reference. |
org.omg.CORBA.ORB |
getORB()
|
org.omg.CosEventChannelAdmin.ProxyPushConsumer |
getPPConsumer()
Return the ProxyPushConsumer to anyone who wants to know |
protected void |
init()
Initialise the _DaObjectBase. |
protected void |
init(java.lang.String childPersistentPOAName)
Initialise the _DaObjectBase given Portable Object Adapter. |
protected void |
initEventService()
Initializes a CORBA object as consumer of EventService events |
void |
setNameServerIOR(java.lang.String ior)
Get the AIDA Name Server's Interoperable Object Reference. |
void |
Start()
Starts the CORBA server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public org.omg.CORBA.ORB m_orb
protected org.omg.PortableServer.POAManager m_POA_manager
protected org.omg.PortableServer.POA m_rootPOA
protected org.omg.PortableServer.POA m_consumerPOA
protected org.omg.CosEventChannelAdmin.EventChannel m_event_channel
protected java.util.Properties m_props
protected static edu.stanford.slac.err.Err m_err
public static final java.lang.String[][] DAO_PROPS
Constructor Detail |
---|
public _DaObjectBase() throws edu.stanford.slac.except.AidaInitException
edu.stanford.slac.except.AidaInitException
- Init error, probably in CORBA initialization.public _DaObjectBase(java.lang.String[] args) throws edu.stanford.slac.except.AidaInitException
args
- a list of CORBA properties name value pairs, in particular
the -ORBconfig configfilename. Properties that are not CORBA are ignored
so that this parameter may be the argv argument passed into the main
program allowing CORBA parameters to be set from the command line.
edu.stanford.slac.except.AidaInitException
- Init error, probably in CORBA initialization.public _DaObjectBase(java.lang.String[] args, java.lang.String childPersistentPOAName) throws edu.stanford.slac.except.AidaInitException
args
- a list of CORBA properties name value pairs, in particular
the -ORBconfig configfilename. Properties that are not CORBA are ignored
so that this parameter may be the argv argument passed into the main
program allowing CORBA parameters to be set from the command line.childPersistentPOAName
- Server name for persistent CORBA servers
edu.stanford.slac.except.AidaInitException
- Init error, probably in CORBA initialization.public _DaObjectBase(java.lang.String[] args, boolean events) throws edu.stanford.slac.except.AidaInitException
args
- a list of CORBA properties name value pairs, in particular
the -ORBconfig configfilename. Properties that are not CORBA are ignored
so that this parameter may be the argv argument passed into the main
program allowing CORBA parameters to be set from the command line.events
- whether to initialize EventService. If this is true a
push_consumerImpl must be in the classpath
edu.stanford.slac.except.AidaInitException
- Init error, probably in CORBA initialization.public _DaObjectBase(java.lang.String[] args, java.lang.String childPersistentPOAName, boolean events) throws edu.stanford.slac.except.AidaInitException
args
- a list of CORBA properties name value pairs, in particular
the -ORBconfig configfilename. Properties that are not CORBA are ignored
so that this parameter may be the argv argument passed into the main
program allowing CORBA parameters to be set from the command line.childPersistentPOAName
- Server name for persistent CORBA serversevents
- whether to initialize EventService. If this is true a
push_consumerImpl must be in the classpath
edu.stanford.slac.except.AidaInitException
- Init error, probably in CORBA initialization.Method Detail |
---|
protected void init(java.lang.String childPersistentPOAName) throws edu.stanford.slac.except.AidaInitException
edu.stanford.slac.except.AidaInitException
- up-translated exception from CORBA initialization.public org.omg.CORBA.ORB getORB()
protected void init() throws edu.stanford.slac.except.AidaInitException
edu.stanford.slac.except.AidaInitException
- up-translated exception from CORBA initialization.public org.omg.CosEventChannelAdmin.ProxyPushConsumer getPPConsumer()
protected void initEventService()
public void EventConnect(org.omg.CosEventComm.PushConsumer consumer)
consumer
- a PushConsumer that will receive eventspublic void Start()
java.lang.IllegalStateException
- Error activating the server,
or in Orb.run()
.public java.lang.String getNameServerIOR()
public void setNameServerIOR(java.lang.String ior)
ior
- The Interoperable Object Reference for the current server
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |