|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.services.wps.ProcessExecution
public class ProcessExecution
Encapsulates the status of a WPSProcess
execution.
Constructor Summary | |
---|---|
ProcessExecution(ExecuteRequest request,
StorageLocation responseStorage,
URL serviceInstance,
List<RequestedOutput> outputParams,
ProcessletOutputs outputs)
Creates a new ProcessExecution for a Processlet that has been accepted for execution. |
Method Summary | |
---|---|
ExecuteResponse |
createExecuteResponse()
Creates an ExecuteResponse that reflects the current execution state. |
String |
getAcceptedMessage()
Returns optional additional human-readable text associated with the acceptance of the process execution. |
WPSConstants.ExecutionState |
getExecutionState()
Returns the current processing state. |
OWSException |
getFailedException()
Returns the exception that describes the reason for the failure of the process execution. |
long |
getFinishTime()
Returns the time that the process execution has been finished. |
String |
getPauseMessage()
Returns optional additional human-readable text associated with the pausing of the process execution. |
int |
getPercentCompleted()
Returns the percentage of process that has been completed, where 0 means the process has just started, and 99 means the process is almost complete. |
CodeType |
getProcessId()
Returns the "Identifier" for this process. |
String |
getStartMessage()
Returns optional additional human-readable text associated with the starting of the process execution. |
long |
getStartTime()
Returns the time when the process execution has been started. |
String |
getSucceededMessage()
Returns optional additional human-readable text associated with the successful finishing of the process execution. |
void |
setPercentCompleted(int percentCompleted)
Allows the Processlet to indicate the percentage of the process that has been completed, where 0 means
the process has just started, and 99 means the process is almost complete. |
void |
setStartedMessage(String msg)
Allows the Processlet to provide a start message for the client. |
void |
setSucceededMessage(String msg)
Allows the Processlet to provide a finish message for the client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessExecution(ExecuteRequest request, StorageLocation responseStorage, URL serviceInstance, List<RequestedOutput> outputParams, ProcessletOutputs outputs)
ProcessExecution
for a Processlet
that has been accepted for execution.
Processing state is WPSConstants.ExecutionState.ACCEPTED
.
request
- responseStorage
- serviceInstance
- outputParams
- outputs
- Method Detail |
---|
public WPSConstants.ExecutionState getExecutionState()
public int getPercentCompleted()
public String getAcceptedMessage()
public String getStartMessage()
public long getStartTime()
public long getFinishTime()
public CodeType getProcessId()
public String getPauseMessage()
public String getSucceededMessage()
public OWSException getFailedException()
public ExecuteResponse createExecuteResponse()
ExecuteResponse
that reflects the current execution state.
ExecuteResponse
that reflects the current execution statepublic void setStartedMessage(String msg)
ProcessletExecutionInfo
Processlet
to provide a start message for the client.
setStartedMessage
in interface ProcessletExecutionInfo
public void setSucceededMessage(String msg)
ProcessletExecutionInfo
Processlet
to provide a finish message for the client.
setSucceededMessage
in interface ProcessletExecutionInfo
public void setPercentCompleted(int percentCompleted)
ProcessletExecutionInfo
Processlet
to indicate the percentage of the process that has been completed, where 0 means
the process has just started, and 99 means the process is almost complete. This value is expected to be accurate
to within ten percent.
setPercentCompleted
in interface ProcessletExecutionInfo
percentCompleted
- the percentage value to be set, a number between 0 and 99
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |