org.filteredpush.triage
Class FPJobStatus
java.lang.Object
org.filteredpush.triage.FPJobStatus
- All Implemented Interfaces:
- Status
public class FPJobStatus
- extends java.lang.Object
- implements Status
A state machine for the status of jobs, e.g. instances of a child of AbstractJob.
- Author:
- mole
$Id: FPJobStatus.java 2003 2013-02-13 21:07:38Z dlowery $
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_PLANNED
public static final int STATUS_PLANNED
- See Also:
- Constant Field Values
STATUS_RUNNING
public static final int STATUS_RUNNING
- See Also:
- Constant Field Values
STATUS_COMPLETE
public static final int STATUS_COMPLETE
- See Also:
- Constant Field Values
FPJobStatus
public FPJobStatus()
getStatus
public int getStatus()
- Specified by:
getStatus in interface Status
changeStatusTo
public boolean changeStatusTo(int newStatus)
throws BadStatusException
- Specified by:
changeStatusTo in interface Status
- Throws:
BadStatusException