public class UnixLifecycle extends Lifecycle
Lifecycle implementation when Hudson runs on the embedded
servlet container on Unix.
Restart by exec to self.
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
UnixLifecycle() |
| Modifier and Type | Method and Description |
|---|---|
void |
restart()
If this life cycle supports a restart of Hudson, do so.
|
void |
verifyRestartable()
Can the
Lifecycle.restart() method restart Hudson? |
canRestart, canRewriteHudsonWar, get, getHudsonWar, rewriteHudsonWarpublic UnixLifecycle()
throws IOException
IOExceptionpublic 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 LifecycleIOExceptionInterruptedExceptionpublic void verifyRestartable()
throws RestartNotSupportedException
LifecycleLifecycle.restart() method restart Hudson?verifyRestartable in class LifecycleRestartNotSupportedException - If the restart is not supported, throw this exception and explain the cause.Copyright © 2019. All rights reserved.