org.jenkinsci.plugins.mavenrepocleaner
Class MavenRepoCleanerThread

java.lang.Object
  extended by java.util.TimerTask
      extended by hudson.triggers.SafeTimerTask
          extended by hudson.model.PeriodicWork
              extended by hudson.model.AsyncPeriodicWork
                  extended by org.jenkinsci.plugins.mavenrepocleaner.MavenRepoCleanerThread
All Implemented Interfaces:
hudson.ExtensionPoint, Runnable

@Extension
public class MavenRepoCleanerThread
extends hudson.model.AsyncPeriodicWork

Clean up Maven repositories

Author:
Andrew Bayer

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static boolean disabled
          Can be used to disable workspace clean up.
 
Fields inherited from class hudson.model.AsyncPeriodicWork
name
 
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
 
Constructor Summary
MavenRepoCleanerThread()
           
 
Method Summary
 void checkTriggers(Calendar cal)
           
protected  void execute(hudson.model.TaskListener listener)
           
 long getRecurrencePeriod()
           
static void invoke()
           
 
Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getLogFile
 
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

disabled

public static boolean disabled
Can be used to disable workspace clean up.

Constructor Detail

MavenRepoCleanerThread

public MavenRepoCleanerThread()
Method Detail

getRecurrencePeriod

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

execute

protected void execute(hudson.model.TaskListener listener)
                throws InterruptedException,
                       IOException
Specified by:
execute in class hudson.model.AsyncPeriodicWork
Throws:
InterruptedException
IOException

checkTriggers

public void checkTriggers(Calendar cal)
                   throws antlr.ANTLRException,
                          IOException,
                          InterruptedException
Throws:
antlr.ANTLRException
IOException
InterruptedException

invoke

public static void invoke()


Copyright © 2004-2011. All Rights Reserved.