public class SchedulerJobStatistics extends BaseManager
SchedulerJob
,
SchedulerJob.getJobStatistics()
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_OPTION_ERROR |
static int |
STATUS_OPTION_EXECUTING |
static int |
STATUS_OPTION_NOT_YET_EXECUTED |
static int |
STATUS_OPTION_SUCCESSFUL |
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage()
Returns an error message if an error happened while executing this job.
|
java.util.Date |
getLastRun()
Returns the date of the last run of this job.
|
java.util.Date |
getNextStart()
Returns the next start date for this job.
|
int |
getStatus()
Returns the status of this job after execution.
|
void |
setErrorMessage(java.lang.String msg)
Sets the error message for this job.
|
void |
setLastRun(java.util.Date date)
Sets the given date as date of the last run.
|
void |
setNextStart(java.util.Date date)
Sets the next start date to use for this job.
|
void |
setStatus(int status)
Sets the status of this job after execution.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public static final int STATUS_OPTION_NOT_YET_EXECUTED
public static final int STATUS_OPTION_EXECUTING
public static final int STATUS_OPTION_SUCCESSFUL
public static final int STATUS_OPTION_ERROR
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String msg)
msg
- the new error messagepublic java.util.Date getNextStart()
public void setNextStart(java.util.Date date)
date
- start date to use for this jobpublic java.util.Date getLastRun()
public void setLastRun(java.util.Date date)
date
- last run date to storepublic int getStatus()
STATUS_OPTION_SUCCESSFUL
,
STATUS_OPTION_EXECUTING
, STATUS_OPTION_NOT_YET_EXECUTED
and
STATUS_OPTION_ERROR
.
Defaults to STATUS_OPTION_NOT_YET_EXECUTED
public void setStatus(int status)
STATUS_OPTION_SUCCESSFUL
,
STATUS_OPTION_EXECUTING
, STATUS_OPTION_NOT_YET_EXECUTED
and
STATUS_OPTION_ERROR
.
This method usually is only called by the scheduler server.status
- the new status information of this jobs last executionwww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.