|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The engine is one of the core components of OGSA-DAI. It executes requests expressed as OGSA-DAI perform documents to the {#perform()} method below. Upon receiving a request, an implementation may
Method Summary | |
int |
activeLoad()
Returns the engine's current active load. |
int |
latentLoad()
Returns the engine's current latent load. |
void |
perform(Request request,
RequestContext context,
ResponseBuilder builder)
Submits a request, in the form of a request object, and initiates its processing by the engine. |
void |
terminate()
Terminates the requests that are currently processing. |
void |
terminate(SessionID sessionID)
Terminates any requests that are joined to the specified session. |
Method Detail |
public void perform(Request request, RequestContext context, ResponseBuilder builder) throws RequestAuthorizationException, RequestSpecificationException, RequestExecutionException
request
- The request to be processed.context
- The context within which the request is to be processed.builder
- ResponseBuilder
to use for assembling the
response to the request.
RequestAuthorizationException
- if the request fails because of an authorization problem.
RequestSpecificationException
- if the request fails to execute due to a problem in the
request e.g. it specifies an unsupported activity or a
query expression is has incorrect syntax.
RequestExecutionException
- if the request fails to execute due to a problem in the
e.g. a database connection disappears or a file is
corrupted.public void terminate()
public void terminate(SessionID sessionID)
sessionID
- The identity of the sessionpublic int activeLoad()
int
ranging
between 0 and the maximum number of requests that this instance
can process concurrently.public int latentLoad()
int
ranging
between 0 and the maximum number of requests that this instance
can still accept whilst being fully active.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |