uk.org.ogsadai.dataresource
Interface DataResourceManager

All Known Implementing Classes:
BasicDataResourceManager

public interface DataResourceManager

This interface manages the interaction between the presentation (service) layer and the core (engine) layer in OGSA-DAI.

Author:
The OGSA-DAI Project Team

Method Summary
 DataResourceManagerConfig getDataResourceManagerConfig()
          Return the data resource manager configuration.
 Properties getDataResourceManagerProperties()
           
 ObservableStatus getObservableStatus()
          Gets an object that can be used to observe the status of a currently-executing request.
 org.w3c.dom.Document perform(org.w3c.dom.Document performDocument, RequestContext requestContext)
          Execute a Perform document.
 void setDataResourceManagerConfig(DataResourceManagerConfig config)
          Set the data resource manager configuration.
 void terminate()
          Terminate a current request.
 

Method Detail

setDataResourceManagerConfig

public void setDataResourceManagerConfig(DataResourceManagerConfig config)
Set the data resource manager configuration. This specifies the activities that the data resource manager can support and the connection manager which manages connections to and communications with a data resource.

Parameters:
config - - configuration object.

getDataResourceManagerConfig

public DataResourceManagerConfig getDataResourceManagerConfig()
Return the data resource manager configuration.

Returns:
configuration object.

perform

public org.w3c.dom.Document perform(org.w3c.dom.Document performDocument,
                                    RequestContext requestContext)
                             throws EngineException,
                                    ResponseException
Execute a Perform document.

Parameters:
performDocument - - Perform document.
requestContext - - user and request configuration details.
Returns:
Response describing the status and possibly the results of the request
Throws:
EngineException - - if there is any problem encountered when validating the Perform document, initialising the OGSA-DAI engine or running the request.
ResponseException - - if the execution of the Perform document fails as a whole, but individual activities have succeeded. May contain partial results.

getDataResourceManagerProperties

public Properties getDataResourceManagerProperties()
Returns:
the properties of the data resource manager.

getObservableStatus

public ObservableStatus getObservableStatus()
Gets an object that can be used to observe the status of a currently-executing request.

Returns:
Object through which to observer the request status.

terminate

public void terminate()
               throws EngineSetupUserException
Terminate a current request.

Throws:
EngineSetupUserException - if there is a problem.