public class FilePurgeStep extends AbstractStep
batchInputFileType, dateTimeService, interrupted, name, parameterService
Constructor and Description |
---|
FilePurgeStep() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(String jobName,
Date jobRunDate)
Deletes all files in the temporary directory that are over 1 day old
|
List<FilePurgeCustomAge> |
getCustomAges()
Gets the customAges attribute.
|
List<String> |
getDirectories()
Gets the directories attribute.
|
FilePurgeService |
getFilePurgeService()
Gets the filePurgeService attribute.
|
List<String> |
getRequiredDirectoryNames()
By default it should use batchInpeutFile (single file) directory path as the required directory name.
|
void |
setCustomAges(List<FilePurgeCustomAge> customAge)
Sets the customAges attribute value.
|
void |
setDirectories(List<String> directories)
Sets the directories attribute value.
|
void |
setFilePurgeService(FilePurgeService filePurgeService)
Sets the filePurgeService attribute value.
|
afterPropertiesSet, getBatchInputFileType, getDateTimeService, getName, getParameterService, interrupt, isInterrupted, setBatchInputFileType, setBeanName, setDateTimeService, setInterrupted, setParameterService
prepareDirectories
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepareDirectories
public FilePurgeStep()
public List<String> getRequiredDirectoryNames()
AbstractStep
getRequiredDirectoryNames
in interface InitiateDirectory
getRequiredDirectoryNames
in class AbstractStep
AbstractStep.getRequiredDirectoryNames()
public boolean execute(String jobName, Date jobRunDate) throws InterruptedException
jobName
- the name of the job running the stepjobRunDate
- the time/date the job is executedInterruptedException
Step.execute(String, Date)
public List<String> getDirectories()
public void setDirectories(List<String> directories)
directories
- The directories to set.public List<FilePurgeCustomAge> getCustomAges()
public void setCustomAges(List<FilePurgeCustomAge> customAge)
customAges
- The customAges to set.public FilePurgeService getFilePurgeService()
public void setFilePurgeService(FilePurgeService filePurgeService)
filePurgeService
- The filePurgeService to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.