uk.org.ogsadai.engine
Class Status

java.lang.Object
  |
  +--uk.org.ogsadai.engine.Status

public final class Status
extends java.lang.Object

Class representing various status of a request as it is processed by the engine.

Author:
The OGSA-DAI Team

Field Summary
static Status COMPLETED
          Processing of the request has completed
static Status ERROR
          Processing of the request has encountered an error
static Status PROCESSING
          Processing of the request is underway
static Status TERMINATED
          Processing of the request has been terminated before completion
static Status UNSTARTED
          Processing of the request has not started
 
Method Summary
 boolean isFinished()
          Returns true if the status indicates a finished state, where a finished status equals Status.COMPLETE, Status.ERROR or Status.TERMINATED.
 boolean isStopped()
          Returns true if the status indicates a stopped state, wherre a stopped state equals Status.ERROR or Status.TERMINATED.
 boolean isUnfinished()
          Returns true IFF the status indicates that the we are in a state that does not represent completion.
 boolean isUnstarted()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSTARTED

public static final Status UNSTARTED
Processing of the request has not started


PROCESSING

public static final Status PROCESSING
Processing of the request is underway


COMPLETED

public static final Status COMPLETED
Processing of the request has completed


ERROR

public static final Status ERROR
Processing of the request has encountered an error


TERMINATED

public static final Status TERMINATED
Processing of the request has been terminated before completion

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
status as a java.lang.String.

isStopped

public boolean isStopped()
Returns true if the status indicates a stopped state, wherre a stopped state equals Status.ERROR or Status.TERMINATED.


isFinished

public boolean isFinished()
Returns true if the status indicates a finished state, where a finished status equals Status.COMPLETE, Status.ERROR or Status.TERMINATED.


isUnfinished

public boolean isUnfinished()
Returns true IFF the status indicates that the we are in a state that does not represent completion.

Returns:
true if we are unstarted or currently processing.

isUnstarted

public boolean isUnstarted()
Returns:
true if the status indicates an unstarted state.