Class MavenRepoCleanerThread
- java.lang.Object
-
- java.util.TimerTask
-
- hudson.triggers.SafeTimerTask
-
- hudson.model.PeriodicWork
-
- hudson.model.AsyncPeriodicWork
-
- org.jenkinsci.plugins.mavenrepocleaner.MavenRepoCleanerThread
-
- All Implemented Interfaces:
ExtensionPoint
,Runnable
@Extension public class MavenRepoCleanerThread extends AsyncPeriodicWork
Clean up Maven repositories- Author:
- Andrew Bayer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnable
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description MavenRepoCleanerThread()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkTriggers(Calendar cal)
protected void
execute(TaskListener listener)
long
getRecurrencePeriod()
static void
invoke()
-
Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevel
-
Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, init
-
Methods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, run
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
getRecurrencePeriod
public long getRecurrencePeriod()
- Specified by:
getRecurrencePeriod
in classPeriodicWork
-
execute
protected void execute(TaskListener listener) throws InterruptedException, IOException
- Specified by:
execute
in classAsyncPeriodicWork
- Throws:
InterruptedException
IOException
-
checkTriggers
public void checkTriggers(Calendar cal) throws ANTLRException, IOException, InterruptedException
-
invoke
public static void invoke()
-
-