org.kuali.kfs.sys.batch
Class PurgeTempFilesStep
java.lang.Object
org.kuali.kfs.sys.batch.AbstractStep
org.kuali.kfs.sys.batch.PurgeTempFilesStep
- All Implemented Interfaces:
- Step, org.springframework.beans.factory.BeanNameAware
public class PurgeTempFilesStep
- extends AbstractStep
Purges old files from the temp directory specified in build.properties
Method Summary |
boolean |
execute(String jobName,
Date jobRunDate)
Deletes all files in the temp directory that are over 1 day old |
void |
setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService configurationService)
Sets the configurationService attribute value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PurgeTempFilesStep
public PurgeTempFilesStep()
execute
public boolean execute(String jobName,
Date jobRunDate)
throws InterruptedException
- Deletes all files in the temp directory that are over 1 day old
- Parameters:
jobName
- the name of the job running the stepjobRunDate
- the time/date the job is executed
- Returns:
- true if successful and continue the job, false if successful and stop the job
- Throws:
InterruptedException
- See Also:
Step.execute(String, Date)
setKualiConfigurationService
public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService configurationService)
- Sets the configurationService attribute value.
- Parameters:
configurationService
- The configurationService to set.
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.