uk.org.ogsadai.engine
Interface Engine

All Known Implementing Classes:
ActivityEngine

public interface Engine

The Engine is one of the central components of a Grid Data Service. An implementation of this interface dictates the behaviour of the service when documents are submitted.

Author:
The OGSA-DAI Project Team

Method Summary
 org.w3c.dom.Document perform(org.w3c.dom.Document request, RequestContext context)
          Processes a request and generates a response.
 void terminate()
          Terminates the request that is currently processing.
 

Method Detail

perform

public org.w3c.dom.Document perform(org.w3c.dom.Document request,
                                    RequestContext context)
                             throws RequestUserException,
                                    RequestSystemException,
                                    EngineException,
                                    ResponseException
Processes a request and generates a response.

Parameters:
request - the perform document to be processed in the request
context - the request context containing the user and request configuration details
Returns:
a response Document describing the status and possibly the results of the request
Throws:
RequestUserException - If there is a problem processing the request that is caused by a user error
RequestSystemException - If there is a system problem that prevents the request from processing successfully
EngineException
ResponseException

terminate

public void terminate()
Terminates the request that is currently processing. If no request is processing, no action is taken.