Package jenkins.plugins.jclouds.compute
Class JCloudsStartupHandler
- java.lang.Object
-
- hudson.model.listeners.ItemListener
-
- jenkins.plugins.jclouds.compute.JCloudsStartupHandler
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class JCloudsStartupHandler extends ItemListener
Startup handler for JClouds. The sole purpose of this handler is to delete/suspend stale supplemental instances which might have been left running when jenkins was forcibly restarted or shutdown while running a job that uses JCloudsBuildWrapper. In order to do so,TerminateNodes
persists a list of nodes to shutdown before it is attempting the actual delete/suspend. After successfully handling all nodes, the persisting xml file is removed. During a hard shutdown/restart, this process is usually aborted prematurely and the xml file remains. This handler then picks those files up at the next jenkins startup and completes the operation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description JCloudsStartupHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onLoaded()
-
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCopied, onCreated, onDeleted, onLocationChanged, onRenamed, onUpdated, register
-
-
-
-
Method Detail
-
onLoaded
public void onLoaded()
- Overrides:
onLoaded
in classItemListener
-
-