|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.engine.Status
Class representing various status of a request as it is processed by the engine.
| Field Summary | |
static Status |
COMPLETEDProcessing of the request has completed |
private static java.lang.String |
COPYRIGHT_NOTICECopyright statement |
static Status |
ERRORProcessing of the request has encountered an error |
private java.lang.String |
mTextThe string representation of the status. |
static Status |
PROCESSINGProcessing of the request is underway |
static Status |
TERMINATEDProcessing of the request has been terminated before completion |
static Status |
UNSTARTEDProcessing of the request has not started |
| Constructor Summary | |
private |
Status(java.lang.String text)Creates a new object. |
| Method Summary | |
boolean |
isFinished()Returns flag indicating whether status indicates a finished state. |
boolean |
isStopped()Returns flag indicating whether status indicates a stopped state. |
boolean |
isUnfinished()Returns flag indicating whether status indicates an unfinished state. |
boolean |
isUnstarted()Returns flag indicating whether status indicates an unstarted state. |
java.lang.String |
toString()Returns status. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
public static final Status UNSTARTED
public static final Status PROCESSING
public static final Status COMPLETED
public static final Status ERROR
public static final Status TERMINATED
private final java.lang.String mText
| Constructor Detail |
private Status(java.lang.String text)
text - Status value as a string.| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectjava.lang.String.public boolean isStopped()
true if the status indicates a stopped state, where a stopped state equals Status.ERROR or Status.TERMINATED.public boolean isFinished()
true if the status indicates a finished state, where a finished state equals Status.COMPLETE, Status.ERROR or Status.TERMINATED.public boolean isUnfinished()
true if the status indicates an unfinished state, where an unfinished state equals Status.UNSTARTED or Status.PROCESSING.public boolean isUnstarted()
true if the status indicates an unstarted state, where an unstarted state equals Status.UNSTARTED.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||