Class CleanLostNodesWork
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
com.google.jenkins.plugins.computeengine.CleanLostNodesWork
- All Implemented Interfaces:
ExtensionPoint
,Runnable
Periodically checks if there are no lost nodes in GCP. If it finds any they are deleted.
-
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
Modifier and TypeFieldDescriptionstatic final DateTimeFormatter
The formatter for the label timestamp value as per google label format, "The value can only contain lowercase letters, numeric characters, underscores and dashes.protected final Logger
static final int
static final String
static final long
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, MIN
-
Constructor Summary
-
Method Summary
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
-
Field Details
-
logger
-
NODE_IN_USE_LABEL_KEY
- See Also:
-
RECURRENCE_PERIOD
public static final long RECURRENCE_PERIOD -
LOST_MULTIPLIER
public static final int LOST_MULTIPLIER- See Also:
-
LAST_REFRESH_FORMATTER
The formatter for the label timestamp value as per google label format, "The value can only contain lowercase letters, numeric characters, underscores and dashes. The value can be at most 63 characters long. International characters are allowed".
-
-
Constructor Details
-
CleanLostNodesWork
public CleanLostNodesWork()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriod
in classPeriodicWork
-
getLastRefreshLabelVal
-
doRun
protected void doRun()- Specified by:
doRun
in classSafeTimerTask
-