|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.activity.Activity | +--uk.org.ogsadai.activity.sql.CallDataService
This inner class contacts a data service resource exposed by a data service. A timeout is enabled which means that if this thread doesn't return result before timeout, then the main thread will go on and discard it.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static DAILogger |
LOG
Logger object for this class |
private DataServiceInfo |
mDataServiceInfo
Information about a data service/resource to contact |
private java.lang.String |
mSqlStatement
SQL query statement to submit to data service/resource |
private java.lang.String |
mWebRowSet
XML element of WebRowSet as a string |
Fields inherited from class uk.org.ogsadai.activity.Activity |
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs |
Constructor Summary | |
(package private) |
CallDataService(org.w3c.dom.Element element,
DataServiceInfo dataServiceInfo,
java.lang.String sqlStatement)
Constructor. |
Method Summary | |
(package private) java.lang.String |
getResult()
Gets the WebRowSet containing the query results. |
protected void |
processBlock()
Performs an iteration of the processing of an activity. |
void |
run()
|
Methods inherited from class uk.org.ogsadai.activity.Activity |
cleanUp, connectsTo, createOutputPipe, getActivityConfiguration, getActivityName, getCause, getName, getObservableStatus, getProperties, getSession, getStatus, hasActivityConfiguration, hasProperties, initialise, process, processFirst, setActivityName, setCompleted, setError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final DAILogger LOG
private DataServiceInfo mDataServiceInfo
private java.lang.String mWebRowSet
private java.lang.String mSqlStatement
Constructor Detail |
CallDataService(org.w3c.dom.Element element, DataServiceInfo dataServiceInfo, java.lang.String sqlStatement) throws ActivityCreationException, ActivitySpecificationException
element
- Activity XML from requestdataServiceInfo
- Info about the data service/resource to contactsqlStatement
- SQL query statement to submit.Method Detail |
java.lang.String getResult()
public void run()
run
in interface java.lang.Runnable
protected void processBlock()
Activity
setCompleted
method to indicate that
processing is complete, or the setError
method if
an error occurs that will prevent the processing from
completing.
processBlock
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |