public class JobState
extends Object
implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
VERSION |
Constructor and Description |
---|
JobState(TriggerState triggerState) |
JobState(TriggerState triggerState,
int exceptionsMaxSize) |
JobState(TriggerState triggerState,
int exceptionsMaxSize,
Map<String,Date> triggerDates) |
Modifier and Type | Method and Description |
---|---|
void |
addException(Exception exception,
Date date) |
void |
clearExceptions() |
Object |
clone() |
ObjectValuePair<Exception,Date>[] |
getExceptions() |
int |
getExceptionsMaxSize() |
Date |
getTriggerDate(String key) |
Map<String,Date> |
getTriggerDates() |
TriggerState |
getTriggerState() |
void |
setTriggerDate(String key,
Date date) |
void |
setTriggerState(TriggerState triggerState) |
public static final int VERSION
public JobState(TriggerState triggerState)
public JobState(TriggerState triggerState, int exceptionsMaxSize)
public JobState(TriggerState triggerState, int exceptionsMaxSize, Map<String,Date> triggerDates)
public void addException(Exception exception, Date date)
public void clearExceptions()
public Object clone()
clone
in class Object
public ObjectValuePair<Exception,Date>[] getExceptions()
public int getExceptionsMaxSize()
public Date getTriggerDate(String key)
public Map<String,Date> getTriggerDates()
public TriggerState getTriggerState()
public void setTriggerDate(String key, Date date)
public void setTriggerState(TriggerState triggerState)