uk.org.ogsadai.engine
Class ActivityEngine

java.lang.Object
  |
  +--uk.org.ogsadai.engine.ActivityEngine
All Implemented Interfaces:
Engine

public class ActivityEngine
extends java.lang.Object
implements Engine

This implementation of the Engine interface is designed to process perform documents containing sequences of activity elements that correspond to Activity implementations. The ActivityEngine can not process mutliple request simultaneously and a ActivityUserException will be thrown by the invoke method is an attempt is made to do so. The ObservableStatus contained in the EngineConfiguration can be monitored to determine the status of the current request.

Author:
The OGSA-DAI Project Team

Field Summary
protected  ObservableStatus mStatus
          The observable status used for each Engine request.
 
Constructor Summary
ActivityEngine(EngineConfiguration config)
          Constructs an engine with the specified configuration.
 
Method Summary
 org.w3c.dom.Document perform(org.w3c.dom.Document requestDocument, RequestContext requestContext)
          Processes a request and generates a response.
 void terminate()
          Terminates the request that is currently processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mStatus

protected final ObservableStatus mStatus
The observable status used for each Engine request.

Constructor Detail

ActivityEngine

public ActivityEngine(EngineConfiguration config)
Constructs an engine with the specified configuration.

Parameters:
config - An EngineConfiguration object holding the configuration information requeired by the engine.
Method Detail

perform

public org.w3c.dom.Document perform(org.w3c.dom.Document requestDocument,
                                    RequestContext requestContext)
                             throws EngineException,
                                    ResponseException
Description copied from interface: Engine
Processes a request and generates a response.

Specified by:
perform in interface Engine
Parameters:
requestDocument - the perform document to be processed in the request
requestContext - the request context containing the user and request configuration details
Returns:
a response Document describing the status and possibly the results of the request
EngineException
ResponseException

terminate

public void terminate()
Description copied from interface: Engine
Terminates the request that is currently processing. If no request is processing, no action is taken.

Specified by:
terminate in interface Engine