| com.jcorporate.expresso.services.asyncprocess.AsyncProcessResult
All known Subclasses: com.jcorporate.expresso.services.asyncprocess.DefaultProcessResult,
AsyncProcessResult | public interface AsyncProcessResult (Code) | | AsyncProcessResult a wrpper interface for what is handed back to the client
when a process is waiting, running, or completed..
author: Michael Rimov version: $Revision: 1.4 $ on $Date: 2004/11/17 20:48:17 $ |
Field Summary | |
final public static int | STATUS_COMPLETE | final public static int | STATUS_FAULT Status code for there has been an error processing the AsyncProcess. | final public static int | STATUS_PENDING Status code for the process is still waiting in queue. | final public static int | STATUS_RUNNING |
STATUS_COMPLETE | final public static int STATUS_COMPLETE(Code) | | Status code for the process is complete
|
STATUS_FAULT | final public static int STATUS_FAULT(Code) | | Status code for there has been an error processing the AsyncProcess.
Use getException() to retrieve the actual exception thrown
|
STATUS_PENDING | final public static int STATUS_PENDING(Code) | | Status code for the process is still waiting in queue.
|
STATUS_RUNNING | final public static int STATUS_RUNNING(Code) | | Status code for the process is currently running
|
getException | public Throwable getException()(Code) | | Retrieve the exception that occured during the processing. [If one
exists]
The Exception thrown or null if there is none available. |
getOriginalProcess | public AsyncProcess getOriginalProcess()(Code) | | Get the asynchronous process
AsyncProcess the async process object that was originally queued |
getResult | public Object getResult()(Code) | | Retrieve the result of the Object
java.lang.Object the result of the processing |
getStatus | public Object getStatus()(Code) | | Retrieve the status object
java.lang.Object the status of the object |
getStatusCode | public int getStatusCode()(Code) | | Retrieve the status code of the process.
integer the status code, one of the status fields listed above |
|
|