@Extension public static class NodeProvisioner.NodeProvisionerInvoker extends PeriodicWork
SafeTimerTask.ExceptionRunnable
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static int |
INITIALDELAY
Give some initial warm up time so that statically connected agents
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, init
getLogsRoot, of, run
cancel, scheduledExecutionTime
public 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 PeriodicWork
public long getRecurrencePeriod()
PeriodicWork
Hudson 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 PeriodicWork
protected void doRun()
doRun
in class SafeTimerTask
Copyright © 2004–2021. All rights reserved.