Class ComputeEngineMonitor
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
hudson.model.AsyncPeriodicWork
com.google.jenkins.plugins.computeengine.ComputeEngineMonitor
- All Implemented Interfaces:
ExtensionPoint,Runnable
Periodically checks and maintains minimum instance count for each GCE cloud configuration.
This serves as a backup mechanism since minimum instances are normally created automatically
when an event happens (example: reaching a milestone in jenkins startup, agent is allocated to a build, etc.)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvision minimum instances right after Jenkins has fully started.Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.AsyncPeriodicWork
nameFields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevelMethods 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
-
Constructor Details
-
ComputeEngineMonitor
public ComputeEngineMonitor()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classPeriodicWork
-
execute
- Specified by:
executein classAsyncPeriodicWork
-