@Extension public static class NodeProvisioner.NodeProvisionerInvoker extends PeriodicWork
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static int |
INITIALDELAY
Give some initial warm up time so that statically connected slaves
can be brought online before we start allocating more.
|
static int |
RECURRENCEPERIOD |
DAY, HOUR, logger, MIN| Constructor and Description |
|---|
NodeProvisionerInvoker() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRun() |
long |
getInitialDelay()
Gets the number of milliseconds til the first execution.
|
long |
getRecurrencePeriod()
Gets the number of milliseconds between successive executions.
|
all, initruncancel, scheduledExecutionTimepublic static int INITIALDELAY
public static int RECURRENCEPERIOD
public long getInitialDelay()
PeriodicWork
By default it chooses the value randomly between 0 and PeriodicWork.getRecurrencePeriod()
getInitialDelay in class PeriodicWorkpublic long getRecurrencePeriod()
PeriodicWorkHudson calls this method once to set up a recurring timer, instead of calling this each time after the previous execution completed. So this class cannot be used to implement a non-regular recurring timer.
IOW, the method should always return the same value.
getRecurrencePeriod in class PeriodicWorkprotected void doRun()
doRun in class SafeTimerTaskCopyright © 2019. All rights reserved.