uk.org.ogsadai.activity.sql
Class CallDataService
java.lang.Object
|
+--uk.org.ogsadai.activity.Activity
|
+--uk.org.ogsadai.activity.sql.CallDataService
- All Implemented Interfaces:
- java.lang.Runnable
- class CallDataService
- extends Activity
- implements java.lang.Runnable
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.
- Author:
- The OGSA-DAI Project Team
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 |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
Copyright statement
- See Also:
- Constant Field Values
LOG
private static final DAILogger LOG
-
Logger object for this class
mDataServiceInfo
private DataServiceInfo mDataServiceInfo
-
Information about a data service/resource to contact
mWebRowSet
private java.lang.String mWebRowSet
-
XML element of WebRowSet as a string
mSqlStatement
private java.lang.String mSqlStatement
-
SQL query statement to submit to data service/resource
CallDataService
CallDataService(org.w3c.dom.Element element,
DataServiceInfo dataServiceInfo,
java.lang.String sqlStatement)
throws ActivityCreationException,
ActivitySpecificationException
-
Constructor.
- Parameters:
element
- Activity XML from request
dataServiceInfo
- Info about the data service/resource to contact
sqlStatement
- SQL query statement to submit.
getResult
java.lang.String getResult()
-
Gets the WebRowSet containing the query results.
-
-
- Returns:
- WebRowSet
run
public void run()
-
- Specified by:
run
in interface java.lang.Runnable
-
processBlock
protected void processBlock()
- Description copied from class:
Activity
-
Performs an iteration of the processing of an activity. This may involve reading a block of input data and writing a block of output data, or may involve some other kind of processing. When an activity is processed by the OGSA-DAI engine, this method will be invoked repeatedly until the activity either completes or stops due to an error or termination call. An implementation of this method should invoke the
setCompleted
method to indicate that processing is complete, or the setError
method if an error occurs that will prevent the processing from completing.
-
- Specified by:
processBlock
in class Activity
-