uk.org.ogsadai.engine
Class EngineConfigurationImpl

java.lang.Object
  |
  +--uk.org.ogsadai.engine.EngineConfigurationImpl
All Implemented Interfaces:
EngineConfiguration

public final class EngineConfigurationImpl
extends java.lang.Object
implements EngineConfiguration

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

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private static DAILogger LOG
          Logger object for logging in this class
private  ConcurrencySettings mConcurrencySettings
          Engine concurrency settings
private  DataResourceAccessor mDataResourceAccessor
          Provides access to underlying data resource.
private  SessionCoordinator mSessionCoordinator
          SessionCoordinator for the engine.
 
Constructor Summary
EngineConfigurationImpl(SessionCoordinator sessionCoordinator, ConcurrencySettings concurrencySettings)
          Creates a new EngineConfiguration object using the specified SessionCoordinator and concurrency settings.
 
Method Summary
 DataResourceAccessor getDataResourceAccessor()
          Gets the DataResourceAccessor object that will be available to the ActivityEngine.
 int getMaxQueueLength()
          Returns the maximum queue length as an int.
 int getMaxRequests()
          Returns the maximum number of requests as an int.
 long getRequestProcessingTimeout()
          Returns the request processing timeout as a long.
 SessionCoordinator getSessionCoordinator()
          Gets the session coordinator that will be used by the engine for joining and releasing requests to and from sessions.
 void setDataResourceAccessor(DataResourceAccessor dataResourceAccessor)
          Sets the DataResourceAccessor object that will be available to the ActivityEngine for accessing the data service's underlying data resource.
 
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 logging in this class


mSessionCoordinator

private final SessionCoordinator mSessionCoordinator
SessionCoordinator for the engine.


mDataResourceAccessor

private DataResourceAccessor mDataResourceAccessor
Provides access to underlying data resource.


mConcurrencySettings

private final ConcurrencySettings mConcurrencySettings
Engine concurrency settings

Constructor Detail

EngineConfigurationImpl

public EngineConfigurationImpl(SessionCoordinator sessionCoordinator,
                               ConcurrencySettings concurrencySettings)
Creates a new EngineConfiguration object using the specified SessionCoordinator and concurrency settings. 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:
sessionCoordinator - The SessionCoordinator that will be used by the engine for joining and releasing requests to and from sessions.
concurrencySettings - Concurrency settings for the engine.
Throws:
java.lang.IllegalArgumentException - If
Method Detail

getDataResourceAccessor

public final DataResourceAccessor getDataResourceAccessor()
Gets the DataResourceAccessor object that will be available to the ActivityEngine.

Specified by:
getDataResourceAccessor in interface EngineConfiguration
Returns:
A DataResourceAccessor for accessing an underlying data resource.

setDataResourceAccessor

public void setDataResourceAccessor(DataResourceAccessor dataResourceAccessor)
Sets the DataResourceAccessor object that will be available to the ActivityEngine for accessing the data service's underlying data resource.

Specified by:
setDataResourceAccessor in interface EngineConfiguration
Parameters:
dataResourceAccessor - A DataResourceAccessor object.
Throws:
java.lang.IllegalArgumentException - If dataResourceAccessor is null.

getMaxQueueLength

public int getMaxQueueLength()
Returns the maximum queue length as an int.

Specified by:
getMaxQueueLength in interface EngineConfiguration

getMaxRequests

public int getMaxRequests()
Returns the maximum number of requests as an int.

Specified by:
getMaxRequests in interface EngineConfiguration

getRequestProcessingTimeout

public long getRequestProcessingTimeout()
Returns the request processing timeout as a long.

Specified by:
getRequestProcessingTimeout in interface EngineConfiguration

getSessionCoordinator

public SessionCoordinator getSessionCoordinator()
Gets the session coordinator that will be used by the engine for joining and releasing requests to and from sessions.

Specified by:
getSessionCoordinator in interface EngineConfiguration
Returns:
a SessionCoordinator