org.filteredpush.triage
Class FPJobStatus

java.lang.Object
  extended by 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 $

Field Summary
static int STATUS_COMPLETE
           
static int STATUS_PLANNED
           
static int STATUS_RUNNING
           
 
Constructor Summary
FPJobStatus()
           
 
Method Summary
 boolean changeStatusTo(int newStatus)
           
 int getStatus()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FPJobStatus

public FPJobStatus()
Method Detail

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