Class JenkinsHeartbeatAperiodicWork
- java.lang.Object
-
- java.util.TimerTask
-
- hudson.triggers.SafeTimerTask
-
- hudson.model.AperiodicWork
-
- io.jenkins.plugins.propelo.job_reporter.extensions.JenkinsHeartbeatAperiodicWork
-
- All Implemented Interfaces:
ExtensionPoint
,Runnable
@Log4j2 @Extension public class JenkinsHeartbeatAperiodicWork extends AperiodicWork
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.AperiodicWork
logger
-
-
Constructor Summary
Constructors Constructor Description JenkinsHeartbeatAperiodicWork()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAperiodicRun()
AperiodicWork
getNewInstance()
long
getRecurrencePeriod()
HeartbeatResponse
sendHeartbeat(String hbRequestPayload, GenericRequestService genericRequestService, PropeloPluginImpl plugin, ProxyConfigService.ProxyConfig proxyConfig)
-
Methods inherited from class hudson.model.AperiodicWork
all, doRun, getInitialDelay, init
-
Methods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, run
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
doAperiodicRun
public void doAperiodicRun()
- Specified by:
doAperiodicRun
in classAperiodicWork
-
sendHeartbeat
@NotNull public HeartbeatResponse sendHeartbeat(String hbRequestPayload, GenericRequestService genericRequestService, PropeloPluginImpl plugin, ProxyConfigService.ProxyConfig proxyConfig) throws IOException
- Throws:
IOException
-
getRecurrencePeriod
public long getRecurrencePeriod()
- Specified by:
getRecurrencePeriod
in classAperiodicWork
-
getNewInstance
public AperiodicWork getNewInstance()
- Specified by:
getNewInstance
in classAperiodicWork
-
-