public class BatchContainerStep extends AbstractStep implements ContainerStepListener
| Modifier and Type | Field and Description | 
|---|---|
| protected String | batchContainerDirectory | 
| protected Step | batchContainerStopStep | 
| protected List<BatchStepFileDescriptor[]> | completedSteps | 
| protected StringBuffer | containerResults | 
| protected BatchContainerDirectory | directory | 
| protected Map<String,BatchStepFileDescriptor> | startedSteps | 
batchInputFileType, dateTimeService, interrupted, name, parameterService| Constructor and Description | 
|---|
| BatchContainerStep() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | execute(String jobName,
              Date jobRunDate)This method begins an infinite loop in order to process semaphore files written by BatchStepTrigger (called via the brte scripts). | 
| Step | getBatchContainerStopStep() | 
| protected long | getSemaphoreProcessingInterval() | 
| protected Step | getStep(BatchStepFileDescriptor batchStepFile)Retrieves the Step bean from the SpringContext | 
| protected void | initContainerResults()Initialize the structures necessary for logging the Steps' statistics | 
| protected boolean | isStopBatchContainerTriggered(Step step) | 
| protected void | logContainerResultsSummary()Print a summary of the steps that ran and the steps that haven't completed yet. | 
| protected void | logStepFinished(BatchStepFileDescriptor resultFile,
                              String logFileName)Log the notification that the Step finished to an internal buffer. | 
| protected void | logStepStarted(BatchStepFileDescriptor runFile,
                            String logFileName)Log the notification that the Step started to an internal buffer. | 
| void | setBatchContainerDirectory(String batchContainerDirectory)The path to the directory in which BatchContainerStep, BatchStepExecutor, and BatchStepTrigger will read and write the step semaphore files. | 
| void | setBatchContainerStopStep(Step batchContainerStopStep)The Step which indicates to the Batch Container to shut itself down. | 
| protected void | sleep()Sleep for a specified amount of time before looking for more semaphore files to process | 
| void | stepFinished(BatchStepFileDescriptor resultFile,
                        String logFileName)Notification that the Step finished. | 
| void | stepStarted(BatchStepFileDescriptor runFile,
                      String logFileName)Notification that the Step started. | 
afterPropertiesSet, getBatchInputFileType, getDateTimeService, getName, getParameterService, getRequiredDirectoryNames, interrupt, isInterrupted, setBatchInputFileType, setBeanName, setDateTimeService, setInterrupted, setParameterServiceprepareDirectoriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareDirectoriesprotected String batchContainerDirectory
protected Step batchContainerStopStep
protected BatchContainerDirectory directory
protected StringBuffer containerResults
protected Map<String,BatchStepFileDescriptor> startedSteps
protected List<BatchStepFileDescriptor[]> completedSteps
public BatchContainerStep()
public boolean execute(String jobName, Date jobRunDate) throws InterruptedException
execute in interface StepjobName - the name of the job running the stepjobRunDate - the time/date the job is executedInterruptedExceptionpublic void stepStarted(BatchStepFileDescriptor runFile, String logFileName)
stepStarted in interface ContainerStepListenerrunFile - The Step's .run file descriptorlogFileName - The Step's log file created by its executor. The logFile is used to provide a unique identifier for this run of the Steppublic void stepFinished(BatchStepFileDescriptor resultFile, String logFileName)
stepFinished in interface ContainerStepListenerresultFile - the Step's .success or .error file descriptorlogFileName - The Step's log file created by its executor when the step started. The logFile is used to provide a unique identifier for this run of the Stepprotected Step getStep(BatchStepFileDescriptor batchStepFile)
batchStepFile - the file descriptor for the step to runprotected boolean isStopBatchContainerTriggered(Step step)
step - the Step specified by the .run fileprotected void sleep()
protected long getSemaphoreProcessingInterval()
protected void initContainerResults()
protected void logStepStarted(BatchStepFileDescriptor runFile, String logFileName)
runFile - the step's run file descriptorlogFileName - the name of the log created by the Step's executor.protected void logStepFinished(BatchStepFileDescriptor resultFile, String logFileName)
resultFile - the step's result file descriptorlogFileName - the name of the log created by the Step's executorprotected void logContainerResultsSummary()
public void setBatchContainerDirectory(String batchContainerDirectory)
batchContainerDirectory - public void setBatchContainerStopStep(Step batchContainerStopStep)
batchContainerStopStep - public Step getBatchContainerStopStep()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.