Package hudson.lifecycle
Class UnixLifecycle
java.lang.Object
hudson.lifecycle.Lifecycle
hudson.lifecycle.UnixLifecycle
Lifecycle implementation when Hudson runs on the embedded
servlet container on Unix.
Restart by exec to self.
- Since:
- 1.304
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.lifecycle.Lifecycle
Lifecycle.PlaceholderLifecycle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrestart()If this life cycle supports a restart of Hudson, do so.voidCan theLifecycle.restart()method restart Hudson?Methods inherited from class hudson.lifecycle.Lifecycle
canRestart, canRewriteHudsonWar, get, getHudsonWar, onBootFailure, onExtendTimeout, onReady, onReload, onStatusUpdate, onStop, rewriteHudsonWar, supportsDynamicLoad
-
Constructor Details
-
UnixLifecycle
public UnixLifecycle()
-
-
Method Details
-
restart
Description 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 classLifecycle- Throws:
IOExceptionInterruptedException
-
verifyRestartable
Description copied from class:LifecycleCan theLifecycle.restart()method restart Hudson?- Overrides:
verifyRestartablein classLifecycle- Throws:
RestartNotSupportedException- If the restart is not supported, throw this exception and explain the cause.
-