hudson.plugins.tmpcleaner
Class TmpCleanWork

java.lang.Object
  extended by java.util.TimerTask
      extended by hudson.triggers.SafeTimerTask
          extended by hudson.model.PeriodicWork
              extended by hudson.plugins.tmpcleaner.TmpCleanWork
All Implemented Interfaces:
hudson.ExtensionPoint, Runnable

@Extension
public class TmpCleanWork
extends hudson.model.PeriodicWork

Clean up /tmp files from slaves.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static long days
          delete files not accessed since x days
static String extraDirectories
          extra directories to cleanup comma separated
static long minutes
          recurence period in minutes
 
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
 
Constructor Summary
TmpCleanWork()
           
 
Method Summary
protected  void doRun()
           
 long getRecurrencePeriod()
           
 
Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay
 
Methods inherited from class hudson.triggers.SafeTimerTask
run
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minutes

public static long minutes
recurence period in minutes


extraDirectories

public static String extraDirectories
extra directories to cleanup comma separated


days

public static long days
delete files not accessed since x days

Constructor Detail

TmpCleanWork

public TmpCleanWork()
Method Detail

getRecurrencePeriod

public long getRecurrencePeriod()
Specified by:
getRecurrencePeriod in class hudson.model.PeriodicWork

doRun

protected void doRun()
Specified by:
doRun in class hudson.triggers.SafeTimerTask


Copyright © 2004-2011. All Rights Reserved.