|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.slac.aida.lib.util.common._DaObjectBase
edu.stanford.slac.aida.lib.util.common._DaObject
edu.stanford.slac.aida.lib.da.DaObject
public class DaObject
The basic AIDA data access API class. This is the user-level class that encapsulates an AIDA Data Access Object. Use methods of this class to get data.
| Field Summary | |
|---|---|
AidaObjectI |
m_da
Callable interface of the Data Access Server (DaServer). |
| Fields inherited from class edu.stanford.slac.aida.lib.util.common._DaObject |
|---|
m_args |
| 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-argument constructor of DaObject. |
|
DaObject(java.lang.String[] args)
Constructs a DaObject with command line arguments |
|
DaObject(java.lang.String[] args,
boolean events)
Constructs a DaObject with command line arguments and conditional event service init |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(DaReference r)
Gets data specified by a given DaReference. |
java.lang.Object |
get(java.lang.String target,
int type)
Gets data referenced by given target. |
java.lang.Object[] |
geta(DaReference r)
Gets given DaReference. |
java.lang.Object[] |
geta(java.lang.String target,
int type)
Gets data referenced by a given target. |
org.omg.CORBA.Any |
getAny(DaReference r)
Gets given DaReference, giving a CORBA Any. |
org.omg.CORBA.Any |
getAny(java.lang.String target)
Gets data specified by given target query, giving a CORBA Any. |
DaValue |
getDaValue(DaReference r)
Gets given DaReference. |
DaValue |
getDaValue(java.lang.String target)
Gets data referenced by given target. |
protected void |
init()
Initialise any fields |
void |
reset()
Reset this DaObject. |
DaValue |
set(java.lang.String target)
Performs a set operation for a server specified by a target. |
DaValue |
setDaValue(java.lang.String target,
DaValue v)
Sets data specified by a DaValue for a server specified by a target. |
void |
setParam(java.lang.String parmlist)
This method is used to set global Data Access Object parameters. |
void |
setParam(java.lang.String name,
java.lang.String value)
This method is used to set global Data Access Object parameters. |
| Methods inherited from class edu.stanford.slac.aida.lib.util.common._DaObject |
|---|
concatArgs, getAidaServerI, getArgs, getNameServerI, GetObjRef, getTargetRef, StoreObjRef |
| 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 AidaObjectI m_da
| 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)
throws edu.stanford.slac.except.AidaInitException
args - Command line arguments that may contain CORBA arguments that
expert users may wish to pass to the low level subsystems to
custom initialise the ORB
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 - Command line arguments that may contain CORBA arguments that
expert users may wish to pass to the low level subsystems to
custom initialise the ORBevents - Initialise event service?
edu.stanford.slac.except.AidaInitException - Probably CORBA failed to initialize.| Method Detail |
|---|
protected void init()
throws edu.stanford.slac.except.AidaInitException
init in class _DaObjectedu.stanford.slac.except.AidaInitException - Probably CORBA failed to initialize.public void setParam(java.lang.String parmlist)
parmlist - parameter/value pairs in the form
"parm=value;parm=value;parm=value;"
public void setParam(java.lang.String name,
java.lang.String value)
name - Parameter name. Has meaning only in implementing servicesvalue - New value for given parameter namepublic void reset()
public java.lang.Object get(DaReference r)
throws edu.stanford.slac.except.UndefinedNameException,
edu.stanford.slac.except.UnableToGetDataException
r - A DaReference object that encapsulates a well formed parsed
AQS (AIDA Query Specification) query. The type of this reference
must have either been successfully gleaned from the compilation
process or set manually with setType()
edu.stanford.slac.except.UndefinedNameException - when the Directory Service cannot resolve the
query in the given DaReference.
edu.stanford.slac.except.UnableToGetDataException
public java.lang.Object get(java.lang.String target,
int type)
throws edu.stanford.slac.except.UnableToGetDataException
target - A AQS string target to be evaluatedtype - The expected return type of the query
edu.stanford.slac.except.UnableToGetDataException - error executing query
public java.lang.Object[] geta(DaReference r)
throws edu.stanford.slac.except.UnableToGetDataException,
edu.stanford.slac.except.UndefinedNameException
r - A DaReference object that encapsulates a well formed parsed
AQS (AIDA Query Specification) query. The type of this reference
must have either been successfully gleaned from the compilation
process or set manually with setType()
edu.stanford.slac.except.UndefinedNameException - query string is invalid; not in Directory Service or
bad syntax.
edu.stanford.slac.except.UnableToGetDataException - error executing query
public java.lang.Object[] geta(java.lang.String target,
int type)
throws edu.stanford.slac.except.UnableToGetDataException
target - A AQS string target to be evaluatedtype - The expected return type of the query
edu.stanford.slac.except.UnableToGetDataException - error executing query
public org.omg.CORBA.Any getAny(DaReference r)
throws edu.stanford.slac.except.UnableToGetDataException,
edu.stanford.slac.except.UndefinedNameException
r - A DaReference object that encapsulates a well formed parsed
AQS (AIDA Query Specification) query. The type of this reference
must have either been successfully gleaned from the compilation
process or set manually with setType()
edu.stanford.slac.except.UndefinedNameException - query string is invalid; not in Directory Service or
bad syntax.
edu.stanford.slac.except.UnableToGetDataException - error executing query
public org.omg.CORBA.Any getAny(java.lang.String target)
throws edu.stanford.slac.except.UnableToGetDataException
target - A AQS string target to be evaluated
edu.stanford.slac.except.UnableToGetDataException - error executing query
public DaValue getDaValue(DaReference r)
throws edu.stanford.slac.except.UnableToGetDataException,
edu.stanford.slac.except.UndefinedNameException
r - A DaReference object that encapsulates a well formed parsed
AQS (AIDA Query Specification) query. The type of this reference
must have either been successfully gleaned from the compilation
process or set manually with setType()
edu.stanford.slac.except.UnableToGetDataException - error executing query
edu.stanford.slac.except.UndefinedNameException - query string is invalid; not in Directory Service or
bad syntax.DaValue
public DaValue getDaValue(java.lang.String target)
throws edu.stanford.slac.except.UnableToGetDataException
target - A AQS string target to be evaluated
edu.stanford.slac.except.UnableToGetDataException - error executing queryDaValue
public DaValue set(java.lang.String target)
throws edu.stanford.slac.except.UnableToSetDataException
target - A AQS string target to be evaluated
edu.stanford.slac.except.UnableToGetDataException - error executing query
edu.stanford.slac.except.UnableToSetDataException
public DaValue setDaValue(java.lang.String target,
DaValue v)
throws edu.stanford.slac.except.UnableToSetDataException
target - A AQS string target to be evaluatedv - A DaValue containing the data to be set.
edu.stanford.slac.except.UnableToGetDataException - error executing query
edu.stanford.slac.except.UnableToSetDataException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||