package jalview.ws2;
-
public enum WSJobStatus
{
/** Job has invalid parameters and cannot be started. */
/** Job is running. */
RUNNING,
/** Job has finished with no errors. */
- FINISHED,
- BROKEN,
+ FINISHED, BROKEN,
/** Job has finished with errors. */
FAILED,
/** Job cannot be processed or completed due to server error. */
/** Status cannot be determined. */
UNKNOWN;
-
public boolean isSubmitted()
{
switch (this)
case FINISHED:
case BROKEN:
case FAILED:
- case SERVER_ERROR:
case CANCELLED:
return true;
+ case SERVER_ERROR:
case INVALID:
case READY:
default:
{
return this == WSJobStatus.SUBMITTED || this == WSJobStatus.QUEUED;
}
+
+ public boolean isCompleted()
+ {
+ return this == WSJobStatus.FINISHED;
+ }
}
\ No newline at end of file