|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.audit.api.job.JobHistoryHelper
public class JobHistoryHelper
Simple helper class to trace job execution using the Audit Service.
Field Summary | |
---|---|
static String |
JOB_ENDED_SUFFIX
|
static String |
JOB_FAILED_SUFFIX
|
static String |
JOB_STARTED_SUFFIX
|
Constructor Summary | |
---|---|
JobHistoryHelper(String jobName)
|
Method Summary | |
---|---|
Date |
getLastFailedRun()
Gets the last date the Job was failed. |
Date |
getLastStarted()
Gets the last date the Job was started. |
Date |
getLastSuccessfulRun()
Gets the last date the Job was successfully run. |
void |
logJobEnded()
Logs an event for a successful Job completion. |
void |
logJobFailed(String errMessage)
Logs an event for a failed Job execution. |
void |
logJobStarted()
Logs an event for Job startup. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JOB_STARTED_SUFFIX
public static final String JOB_ENDED_SUFFIX
public static final String JOB_FAILED_SUFFIX
Constructor Detail |
---|
public JobHistoryHelper(String jobName)
Method Detail |
---|
public void logJobStarted() throws Exception
Exception
public void logJobEnded() throws Exception
Exception
public void logJobFailed(String errMessage) throws Exception
Exception
public Date getLastSuccessfulRun() throws Exception
Exception
public Date getLastFailedRun() throws Exception
Exception
public Date getLastStarted() throws Exception
Exception
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |