public class JobHistoryHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JOB_ENDED_SUFFIX |
static String |
JOB_FAILED_SUFFIX |
static String |
JOB_STARTED_SUFFIX |
Constructor and Description |
---|
JobHistoryHelper(String jobName) |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String JOB_STARTED_SUFFIX
public static final String JOB_ENDED_SUFFIX
public static final String JOB_FAILED_SUFFIX
public JobHistoryHelper(String jobName)
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
Copyright © 2013 Nuxeo SA. All Rights Reserved.