|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.engine.EngineConfigurationImpl
An EngineConfiguration
object is used to construct an instance
of ActivityEngine
, the Engine
implementation
supplied with OGSA-DAI.
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 |
private static final java.lang.String COPYRIGHT_NOTICE
private static final DAILogger LOG
private final SessionCoordinator mSessionCoordinator
private DataResourceAccessor mDataResourceAccessor
private final ConcurrencySettings mConcurrencySettings
Constructor Detail |
public EngineConfigurationImpl(SessionCoordinator sessionCoordinator, ConcurrencySettings concurrencySettings)
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.
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.
java.lang.IllegalArgumentException
- If
factory
is null;
sessionCoordinator
is null;
concurrencySettings
is null;
Method Detail |
public final DataResourceAccessor getDataResourceAccessor()
DataResourceAccessor
object that will be
available to the ActivityEngine
.
getDataResourceAccessor
in interface EngineConfiguration
DataResourceAccessor
for accessing an underlying
data resource.public void setDataResourceAccessor(DataResourceAccessor dataResourceAccessor)
DataResourceAccessor
object that will be available
to the ActivityEngine
for accessing the data service's
underlying data resource.
setDataResourceAccessor
in interface EngineConfiguration
dataResourceAccessor
- A DataResourceAccessor
object.
java.lang.IllegalArgumentException
- If dataResourceAccessor
is
null.public int getMaxQueueLength()
int
.
getMaxQueueLength
in interface EngineConfiguration
public int getMaxRequests()
int
.
getMaxRequests
in interface EngineConfiguration
public long getRequestProcessingTimeout()
long
.
getRequestProcessingTimeout
in interface EngineConfiguration
public SessionCoordinator getSessionCoordinator()
getSessionCoordinator
in interface EngineConfiguration
SessionCoordinator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |