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.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateTimeFormatterThe 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 Loggerstatic final intstatic final Stringstatic final longFields inherited from class hudson.model.PeriodicWork
DAY, HOUR, MIN -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods 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:
getRecurrencePeriodin classPeriodicWork
-
getLastRefreshLabelVal
-
doRun
protected void doRun()- Specified by:
doRunin classSafeTimerTask
-