org.kuali.kfs.sys.batch
Class PurgeTempFilesStep

java.lang.Object
  extended by org.kuali.kfs.sys.batch.AbstractStep
      extended by 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


Constructor Summary
PurgeTempFilesStep()
           
 
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 org.kuali.kfs.sys.batch.AbstractStep
getDateTimeService, getName, getParameterService, interrupt, isInterrupted, setBeanName, setDateTimeService, setInterrupted, setParameterService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PurgeTempFilesStep

public PurgeTempFilesStep()
Method Detail

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 step
jobRunDate - 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.