Package hudson.lifecycle
Class WindowsServiceLifecycle
java.lang.Object
hudson.lifecycle.Lifecycle
hudson.lifecycle.WindowsServiceLifecycle
Lifecycle for Hudson installed as Windows service.- Author:
- Kohsuke Kawaguchi
- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.lifecycle.LifecycleLifecycle.PlaceholderLifecycle
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidrestart()If this life cycle supports a restart of Hudson, do so.voidrewriteHudsonWar(File by) On Windows, jenkins.war is locked, so we place a new version under a special name, which is picked up by the service wrapper upon restart.Methods inherited from class hudson.lifecycle.LifecyclecanRestart, canRewriteHudsonWar, get, getHudsonWar, onBootFailure, onExtendTimeout, onReady, onReload, onStatusUpdate, onStop, supportsDynamicLoad, verifyRestartable
- 
Constructor Details- 
WindowsServiceLifecyclepublic WindowsServiceLifecycle()
 
- 
- 
Method Details- 
rewriteHudsonWarOn Windows, jenkins.war is locked, so we place a new version under a special name, which is picked up by the service wrapper upon restart.- Overrides:
- rewriteHudsonWarin class- Lifecycle
- Throws:
- IOException
 
- 
restartDescription copied from class:LifecycleIf this life cycle supports a restart of Hudson, do so. Otherwise, throwUnsupportedOperationException, which is what the default implementation does.The restart operation may happen synchronously (in which case this method will never return), or asynchronously (in which case this method will successfully return.) Throw an exception if the operation fails unexpectedly. - Overrides:
- restartin class- Lifecycle
- Throws:
- IOException
- InterruptedException
 
 
-