public class WindowsServiceLifecycle extends Lifecycle
Lifecycle for Hudson installed as Windows service.WindowsInstallerLinkExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
WindowsServiceLifecycle() |
| Modifier and Type | Method and Description |
|---|---|
void |
restart()
If this life cycle supports a restart of Hudson, do so.
|
void |
rewriteHudsonWar(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.
|
canRestart, canRewriteHudsonWar, get, getHudsonWar, verifyRestartablepublic void rewriteHudsonWar(File by) throws IOException
rewriteHudsonWar in class LifecycleIOExceptionpublic void restart()
throws IOException,
InterruptedException
LifecycleUnsupportedOperationException,
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.
restart in class LifecycleIOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.