@Extension @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static class TcpSlaveAgentListener.TcpSlaveAgentListenerRescheduler extends AperiodicWork
TcpSlaveAgentListener
on demand. Disables itself after running.ExtensionPoint.LegacyInstancesAreScopedToHudson
logger
Constructor and Description |
---|
TcpSlaveAgentListenerRescheduler() |
TcpSlaveAgentListenerRescheduler(Thread originThread,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
protected void |
doAperiodicRun() |
AperiodicWork |
getNewInstance()
Gets new instance of task to be executed.
|
long |
getRecurrencePeriod()
Gets the number of milliseconds between successive executions.
|
static void |
schedule(Thread originThread,
Throwable cause) |
static void |
schedule(Thread originThread,
Throwable cause,
long approxDelay) |
void |
setActive(boolean active) |
void |
setCause(Throwable cause) |
void |
setOriginThread(Thread originThread) |
all, doRun, getInitialDelay, init
getLogsRoot, run
cancel, scheduledExecutionTime
public void setOriginThread(Thread originThread)
public void setCause(Throwable cause)
public void setActive(boolean active)
public long getRecurrencePeriod()
AperiodicWork
Jenkins calls this method every time the timer task is scheduled.
getRecurrencePeriod
in class AperiodicWork
public AperiodicWork getNewInstance()
AperiodicWork
IllegalStateException
(especially
in case of AsyncAperiodicWork
) and therefore scheduling of next tasks will be broken.getNewInstance
in class AperiodicWork
protected void doAperiodicRun()
doAperiodicRun
in class AperiodicWork
Copyright © 2004–2019. All rights reserved.