|
deegree-services-3.0-pre-nightly (2010/03/05 00:04) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.services.controller.wps.ExecutionManager
public class ExecutionManager
Responsible for handling Execute
requests sent to the WPSController
. Also keeps track of the
process executions.
WPSController
Constructor Summary | |
---|---|
ExecutionManager(WPSController master,
StorageManager storageManager)
Creates a new ExecutionManager for a WPSController . |
Method Summary | |
---|---|
Collection<ProcessletExecution> |
getAllProcesses()
Returns a collection of information on all processes, including processes that haven't run, are running and have already stopped. |
(package private) ProcessletExecution |
getPendingExecutionState(StorageLocation location)
Returns the ProcessletExecution for a given response document location. |
Collection<ProcessletExecution> |
getRunningProcesses()
Returns a collection of information on all running processes. |
(package private) void |
handleRawDataOutput(ExecuteRequest request,
HttpResponseBuffer response,
Processlet process)
Handles ExecuteRequest requests that shall return a single "raw" output param (with no encapsulating
document) directly in the HTTP response body. |
(package private) void |
handleResponseDocumentOutput(ExecuteRequest request,
HttpResponseBuffer response,
Processlet process)
Handles ExecuteRequest requests that shall return their output encapsulated in a response document. |
(package private) void |
sendResponseDocument(HttpResponseBuffer response,
ResponseDocumentStorage location)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ExecutionManager(WPSController master, StorageManager storageManager)
ExecutionManager
for a WPSController
.
master
- WPSController
that will delegate the processing of execute requestsstorageManager
- used for creating storage locations for web-accessible resources (response documents / process
outputs)Method Detail |
---|
public Collection<ProcessletExecution> getAllProcesses()
public Collection<ProcessletExecution> getRunningProcesses()
void handleRawDataOutput(ExecuteRequest request, HttpResponseBuffer response, Processlet process) throws IOException, ProcessletException, XMLStreamException, OWSException
ExecuteRequest
requests that shall return a single "raw" output param (with no encapsulating
document) directly in the HTTP response body.
RawDataOutput always implies that the Processlet
is executed synchronously, i.e. in the calling thread.
request
- request to be executedresponse
- provides access to the HTTP responseprocess
- process to be invoked
IOException
ProcessletException
XMLStreamException
OWSException
void handleResponseDocumentOutput(ExecuteRequest request, HttpResponseBuffer response, Processlet process) throws OWSException, ProcessletException, XMLStreamException, IOException
ExecuteRequest
requests that shall return their output encapsulated in a response document.
The Processlet
may be executed synchronously (storeExecuteResponse=false) or asynchronously
(storeExecuteResponse=true).
request
- request to be executedresponse
- provides access to the HTTP responseprocess
- process to be invoked
OWSException
ProcessletException
IOException
XMLStreamException
void sendResponseDocument(HttpResponseBuffer response, ResponseDocumentStorage location)
ProcessletExecution getPendingExecutionState(StorageLocation location)
ProcessletExecution
for a given response document location.
location
- storage location of a response document
ProcessletExecution
of the corresponding process if it is still running, null otherwise
|
deegree-services-3.0-pre-nightly (2010/03/05 00:04) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |