uk.org.ogsadai.engine
Class EngineConfiguration

java.lang.Object
  |
  +--uk.org.ogsadai.engine.EngineConfiguration

public final class EngineConfiguration
extends java.lang.Object

An EngineConfiguration object is used to construct an instance of ActivityEngine, the Engine implementation supplied with OGSA-DAI.

Author:
The OGSA-DAI Project Team

Constructor Summary
EngineConfiguration(ActivityFactory factory)
          Creates a new EngineConfiguration object using the specified ActivityFactory.
 
Method Summary
 ResponseBuilder createResponseBuilder()
          Creates a new ResponseBuilder that can be used for assembling a response document when a RequestComponent composite is processed.
 ObservableStatus getObservableStatus()
          Returns the ObservableStatus object.
 RequestComponentFactory getRequestComponentFactory()
          Returns the RequestComponentFactory that can be used for creating composite RequestComponent objects from perform documents.
 void setConnectionManager(ConnectionManager connectionManager)
          Sets the ConnectionManager object that will be available to the ActivityEngine for accessing the grid data service's underlying data resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineConfiguration

public EngineConfiguration(ActivityFactory factory)
Creates a new EngineConfiguration object using the specified ActivityFactory. If this constructor is used the engine will be configured to check perform documents contain known activities but full schema validation of the perform documents will not be performed.

Parameters:
factory - The ActivityFactory that will be used by the engine for constructing activities.
Throws:
java.lang.IllegalArgumentException - If activityConfigFile is null.
Method Detail

setConnectionManager

public void setConnectionManager(ConnectionManager connectionManager)
Sets the ConnectionManager object that will be available to the ActivityEngine for accessing the grid data service's underlying data resource.

Parameters:
connectionManager - A ConnectionManager object.
Throws:
java.lang.NullPointerException - If dataResource is null.

getObservableStatus

public ObservableStatus getObservableStatus()
Returns the ObservableStatus object. Listeners can be attached to this object to monitor that status of the current request.

Returns:
an ObservableStatus object.

getRequestComponentFactory

public RequestComponentFactory getRequestComponentFactory()
Returns the RequestComponentFactory that can be used for creating composite RequestComponent objects from perform documents.

Returns:
a RequestComponentFactory

createResponseBuilder

public ResponseBuilder createResponseBuilder()
Creates a new ResponseBuilder that can be used for assembling a response document when a RequestComponent composite is processed.

Returns:
a new ResponseBuilder