Package com.parallels.jenkins
Class PrlDevopsCloud.NodeReconciler
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
hudson.model.AsyncPeriodicWork
com.parallels.jenkins.PrlDevopsCloud.NodeReconciler
- All Implemented Interfaces:
ExtensionPoint,Runnable
- Enclosing class:
PrlDevopsCloud
Background worker that runs every 60 seconds and removes any
PrlDevopsAgent node whose VM has been deleted outside the plugin
(e.g. manually via prl-devops-service UI or API).
Only offline nodes are inspected — online nodes are by definition healthy. A node is removed when:
- Its owning
PrlDevopsCloudno longer exists in Jenkins, or - Calling
getVmStatus()returns an error state or throws aPrlApiException(typically HTTP 404 — VM not found).
-
Nested Class Summary
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, getSlowLoggingLevel, queueIfAlreadyRunningMethods 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
-
NodeReconciler
public NodeReconciler()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classPeriodicWork
-
execute
- Specified by:
executein classAsyncPeriodicWork
-