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, rewriteHudsonWar
public UnixLifecycle() throws IOException
IOException
public void restart() throws IOException, InterruptedException
Lifecycle
UnsupportedOperationException
,
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 Lifecycle
IOException
InterruptedException
public void verifyRestartable() throws RestartNotSupportedException
Lifecycle
Lifecycle.restart()
method restart Hudson?verifyRestartable
in class Lifecycle
RestartNotSupportedException
- If the restart is not supported, throw this exception and explain the cause.Copyright © 2004–2019. All rights reserved.