Class JCloudsCleanupThread
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
hudson.model.AsyncPeriodicWork
jenkins.plugins.openstack.compute.JCloudsCleanupThread
- All Implemented Interfaces:
ExtensionPoint
,Runnable
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class JCloudsCleanupThread
extends AsyncPeriodicWork
Periodically ensure Jenkins and resources it manages in OpenStacks are not leaked.
Currently it ensures:
- Node pending deletion get terminated with their servers.
- Servers that are running longer than declared are terminated.
- Nodes with server missing are terminated.
-
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 inherited from class hudson.model.AsyncPeriodicWork
name
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(TaskListener listener) protected Level
long
protected Level
Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getErrorLoggingLevel, getLogFile
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
-
Constructor Details
-
JCloudsCleanupThread
public JCloudsCleanupThread()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriod
in classPeriodicWork
-
execute
- Specified by:
execute
in classAsyncPeriodicWork
-
getNormalLoggingLevel
- Overrides:
getNormalLoggingLevel
in classAsyncPeriodicWork
-
getSlowLoggingLevel
- Overrides:
getSlowLoggingLevel
in classAsyncPeriodicWork
-