|
|||||||||
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 edu.stanford.slac.aida.lib.util.common._DaObject
public class _DaObject
Encapsulates interactions with the Aida Name Server and
acquisition parameter handling, for the AIDA data access API
DaObject
class hierarchy. _DaObject
is
used in preference to the DaObject
when coding AIDA
system components, since it contains methods for registering with
AIDA, and finding the Name Server and other system interfaces etc.
Field Summary | |
---|---|
java.util.Hashtable |
m_args
Arguments to be passed to the service that will execute any requests that are transmitted via this Data Access Object. |
Fields inherited from class edu.stanford.slac.aida.lib.util.common._DaObjectBase |
---|
DAO_PROPS, m_consumerPOA, m_err, m_event_channel, m_orb, m_POA_manager, m_props, m_rootPOA |
Constructor Summary | |
---|---|
_DaObject()
No-arg constructor. |
|
_DaObject(java.lang.String[] args)
Constructs a _DaObject without EventService. |
|
_DaObject(java.lang.String[] args,
boolean events)
Constructs a _DaObject including EventService initialization if desired |
|
_DaObject(java.lang.String[] args,
java.lang.String childPersistentPOAName)
Create and initialise a DaObject, with argument list. |
|
_DaObject(java.lang.String[] args,
java.lang.String childPersistentPOAName,
boolean events)
Create and initialise a DaObject, with argument list Make a connection to the ORB. |
Method Summary | |
---|---|
java.lang.String[] |
concatArgs(java.lang.String[] concatenee)
Method that allows addition of a set of arguments specified in an array similar to that returned from getArgs() to be added the current set of args. |
AidaObjectI |
getAidaServerI(java.lang.String service)
Gets a Service's callable interface given its service name, as recorded in the Directory Service. |
java.lang.String[] |
getArgs()
Gets all the parameters that have been set so far for this Data Access Object |
DaNameServerI |
getNameServerI()
Get the Name Service's callable interface |
byte[] |
GetObjRef(java.lang.String aidaObjectName)
Retrieves CORBA IOR for an Aida server for clients. |
AidaObjectRef |
getTargetRef(java.lang.String target)
Gets a AIDA target reference structure that refers to the given target. |
protected void |
init()
Initializes the hash table of queries to data-providers, and acquires the Name Server's CORBA interface. |
void |
StoreObjRef(java.lang.String aidaObjectName,
java.lang.String ior)
Stores CORBA IOR for an Aida server in a place where clients can access them |
java.lang.String |
toStringArgs()
Converts the String array args to a single String suitable for printing. |
Methods inherited from class edu.stanford.slac.aida.lib.util.common._DaObjectBase |
---|
EventConnect, getNameServerIOR, getORB, getPPConsumer, init, initEventService, setNameServerIOR, Start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Hashtable m_args
Constructor Detail |
---|
public _DaObject() throws edu.stanford.slac.except.AidaInitException
edu.stanford.slac.except.AidaInitException
- Probably CORBA failed to initialize.public _DaObject(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 configfilenamechildPersistentPOAName
- Name of this persistent server
edu.stanford.slac.except.AidaInitException
- Probably CORBA failed to initialize.public _DaObject(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 configfilenamechildPersistentPOAName
- Name of this persistent serverevents
- whether to initialize EventService. If this
is true a push_consumerImpl must be in the classpath
edu.stanford.slac.except.AidaInitException
- Probably CORBA failed to initialize.public _DaObject(java.lang.String[] args) throws edu.stanford.slac.except.AidaInitException
args
- a list of CORBA properties name value pairs, in
particular the -ORBconfig configfilename
edu.stanford.slac.except.AidaInitException
- Probably CORBA failed to initialize.public _DaObject(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 configfilenameevents
- whether to initialize EventService. If this
is true a push_consumerImpl must be in the classpath
edu.stanford.slac.except.AidaInitException
- Probably CORBA failed to initialize.Method Detail |
---|
protected void init() throws edu.stanford.slac.except.AidaInitException
_DaObject::init
extends
_DaObjectBase::init
, which has initialized
CORBA communications.
init
in class _DaObjectBase
edu.stanford.slac.except.AidaInitException
- Probably CORBA failed to initialize.public AidaObjectRef getTargetRef(java.lang.String target) throws edu.stanford.slac.except.UndefinedNameException
target
- The given String AQS (AIDA Query Specification)
edu.stanford.slac.except.UndefinedNameException
- The Directory Service could
not resolve the target. Either there is no such name in the
Directories database, or it was poorly specified in the
database.public void StoreObjRef(java.lang.String aidaObjectName, java.lang.String ior)
aidaObjectName
- the name of the server under which to store the IORior
- the Interoperable Object Reference (IOR) of the proxy object
implementing the interface in the name parameter.public byte[] GetObjRef(java.lang.String aidaObjectName)
aidaObjectName
- The name of the AIDA Server Object
for which the IOR is required
public AidaObjectI getAidaServerI(java.lang.String service)
service
- Name of service whose interface is desired
java.lang.IllegalStateException
- couldn't narrow CORBA IOR for Aida Server.public DaNameServerI getNameServerI()
public java.lang.String[] getArgs()
public java.lang.String[] concatArgs(java.lang.String[] concatenee)
a1
- Parameter list 1a2
- Parameter List 2
public java.lang.String toStringArgs()
args
- The parameters client program supplied to a DaObject method
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |