uk.org.ogsadai.activity.sql
Class SQLResilientQueryActivity

java.lang.Object
  |
  +--uk.org.ogsadai.activity.Activity
        |
        +--uk.org.ogsadai.activity.sql.SQLQueryMultipleActivity
              |
              +--uk.org.ogsadai.activity.sql.SQLResilientQueryActivity

public class SQLResilientQueryActivity
extends SQLQueryMultipleActivity

This activity runs queries over two relational data service resources and returns the results as a WebRowSet document from the first one that returns its results.

Each one of the above data service resources is linked to the multiple data service resource implemented by the SQLMultipleDataResource accessor.

The activity's perform document is defined by schema/ogsadai/xsd/activities/sql_resilient.xsd.

The activity calls multiple data service resources each one being executed in its own thread.

For information on this activity see the OGSA-DAI user doc: OGSA-DAI/doc/interaction/activities/relational/sqlResilient.html

Author:
The OGSA-DAI Project Team.

Field Summary
static java.lang.String ACTIVITY_OUTPUT
          Constant used to parse request - activity element
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private static DAILogger LOG
          Logger object for this activity
private  org.w3c.dom.Element mActivityElement
          XML element containing activity information from request
static java.lang.String SQL_STATEMENT
          Constant used to parse request - SQL query statement element
static java.lang.String TIMEOUT
          Constant used to parse request - timeout
 
Fields inherited from class uk.org.ogsadai.activity.sql.SQLQueryMultipleActivity
mClientTimeout, mMultipleDS, mOutput, mOutputString, mSqlStatement, mTimeoutStatus, mTimer
 
Fields inherited from class uk.org.ogsadai.activity.Activity
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs
 
Constructor Summary
SQLResilientQueryActivity(org.w3c.dom.Element element)
           
 
Method Summary
 void processBlock()
          Performs an iteration of the processing of an activity.
 
Methods inherited from class uk.org.ogsadai.activity.sql.SQLQueryMultipleActivity
cleanUp, initialise, isTimeout, setTimeout
 
Methods inherited from class uk.org.ogsadai.activity.Activity
connectsTo, createOutputPipe, getActivityConfiguration, getActivityName, getCause, getName, getObservableStatus, getProperties, getSession, getStatus, hasActivityConfiguration, hasProperties, 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

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 activity


mActivityElement

private org.w3c.dom.Element mActivityElement
XML element containing activity information from request


ACTIVITY_OUTPUT

public static final java.lang.String ACTIVITY_OUTPUT
Constant used to parse request - activity element

See Also:
Constant Field Values

SQL_STATEMENT

public static final java.lang.String SQL_STATEMENT
Constant used to parse request - SQL query statement element

See Also:
Constant Field Values

TIMEOUT

public static final java.lang.String TIMEOUT
Constant used to parse request - timeout

See Also:
Constant Field Values
Constructor Detail

SQLResilientQueryActivity

public SQLResilientQueryActivity(org.w3c.dom.Element element)
                          throws ActivitySpecificationException,
                                 ActivityCreationException
Method Detail

processBlock

public 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