Modifier and Type | Field and Description |
---|---|
static String |
JOB_RUN_END_STEP |
static String |
JOB_RUN_START_STEP |
static String |
MASTER_JOB_NAME |
static String |
RUN_DATE_CUTOFF_PARM_NM |
static String |
STEP_RUN_ON_DATE_PARM_NM |
static String |
STEP_RUN_PARM_NM |
static String |
STEP_USER_PARM_NM |
Constructor and Description |
---|
Job() |
Modifier and Type | Method and Description |
---|---|
void |
execute(org.quartz.JobExecutionContext jobExecutionContext) |
protected static Calendar |
getCutoffWindowBeginning(Date runDateToCheck,
org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Defines the beginning of the cut off window
|
protected static Calendar |
getCutoffWindowEnding(Date runDateToCheck,
org.kuali.rice.core.api.datetime.DateTimeService dateTimeService,
String[] cutOffTime)
Defines the end of the cut off window
|
protected String |
getMachineName() |
org.apache.log4j.Appender |
getNdcAppender() |
static OleSelectDocumentService |
getOleSelectDocumentService() |
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService() |
List<Step> |
getSteps() |
void |
interrupt() |
protected boolean |
isNotRunnable() |
static boolean |
isPastCutoffWindow(Date date,
Collection<String> runDates)
Deprecated.
"Implementing institutions likely want to call Job#withinCutoffWindowForDate"
|
protected String |
jobDataMapToString(org.quartz.JobDataMap jobDataMap) |
static boolean |
runStep(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService,
String jobName,
int currentStepNumber,
Step step,
Date jobRunDate) |
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService) |
void |
setNdcAppender(org.apache.log4j.Appender ndcAppender) |
void |
setNotRunnable(boolean notRunnable) |
void |
setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
void |
setSchedulerService(SchedulerService schedulerService) |
void |
setSteps(List<Step> steps) |
protected static boolean |
skipStep(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService,
Step step,
Date jobRunDate)
This method determines whether the Job should not run the Step based on the RUN_IND and RUN_DATE Parameters.
|
protected static boolean |
withinCutoffWindowForDate(Date jobRunDate,
Date runDateToCheck,
org.kuali.rice.core.api.datetime.DateTimeService dateTimeService,
String[] cutOffWindow)
Checks if the current jobRunDate is within the cutoff window for the given run date from the RUN_DATE parameter.
|
public static final String JOB_RUN_START_STEP
public static final String JOB_RUN_END_STEP
public static final String MASTER_JOB_NAME
public static final String STEP_RUN_PARM_NM
public static final String STEP_RUN_ON_DATE_PARM_NM
public static final String STEP_USER_PARM_NM
public static final String RUN_DATE_CUTOFF_PARM_NM
public Job()
public void execute(org.quartz.JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException
execute
in interface org.quartz.Job
org.quartz.JobExecutionException
Job.execute(org.quartz.JobExecutionContext)
public static boolean runStep(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService, String jobName, int currentStepNumber, Step step, Date jobRunDate) throws InterruptedException, org.kuali.rice.kew.api.exception.WorkflowException
InterruptedException
org.kuali.rice.kew.api.exception.WorkflowException
protected static boolean skipStep(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService, Step step, Date jobRunDate)
protected static boolean withinCutoffWindowForDate(Date jobRunDate, Date runDateToCheck, org.kuali.rice.core.api.datetime.DateTimeService dateTimeService, String[] cutOffWindow)
jobRunDate
- the time the job is attempting to startrunDateToCheck
- the current member of the appropriate RUN_DATE to checkdateTimeService
- an instance of the DateTimeServiceprotected static Calendar getCutoffWindowBeginning(Date runDateToCheck, org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
runDateToCheck
- the run date which defines the cut off windowdateTimeService
- an implementation of the DateTimeServiceprotected static Calendar getCutoffWindowEnding(Date runDateToCheck, org.kuali.rice.core.api.datetime.DateTimeService dateTimeService, String[] cutOffTime)
runDateToCheck
- the run date which defines the cut off windowdateTimeService
- an implementation of the DateTimeServicecutOffTime
- an Array in the form of [hour, minute, second] when the cutoff window endspublic static boolean isPastCutoffWindow(Date date, Collection<String> runDates)
public void interrupt() throws org.quartz.UnableToInterruptJobException
interrupt
in interface org.quartz.InterruptableJob
org.quartz.UnableToInterruptJobException
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public org.apache.log4j.Appender getNdcAppender()
public void setNdcAppender(org.apache.log4j.Appender ndcAppender)
public void setNotRunnable(boolean notRunnable)
protected boolean isNotRunnable()
public org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setSchedulerService(SchedulerService schedulerService)
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
protected String jobDataMapToString(org.quartz.JobDataMap jobDataMap)
protected String getMachineName()
public static OleSelectDocumentService getOleSelectDocumentService()
public void setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService)
Copyright © 2004–2016 The Kuali Foundation. All rights reserved.