hudson.lifecycle
Class UnixLifecycle
java.lang.Object
hudson.lifecycle.Lifecycle
hudson.lifecycle.UnixLifecycle
- All Implemented Interfaces:
- ExtensionPoint
public class UnixLifecycle
- extends Lifecycle
Lifecycle
implementation when Hudson runs on the embedded
servlet container on Unix.
Restart by exec to self.
- Since:
- 1.304
- Author:
- Kohsuke Kawaguchi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnixLifecycle
public UnixLifecycle()
throws IOException
- Throws:
IOException
restart
public void restart()
throws IOException,
InterruptedException
- Description copied from class:
Lifecycle
- If this life cycle supports a restart of Hudson, do so.
Otherwise, throw
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.
- Overrides:
restart
in class Lifecycle
- Throws:
IOException
InterruptedException
verifyRestartable
public void verifyRestartable()
throws RestartNotSupportedException
- Description copied from class:
Lifecycle
- Can the
Lifecycle.restart()
method restart Hudson?
- Overrides:
verifyRestartable
in class Lifecycle
- Throws:
RestartNotSupportedException
- If the restart is not supported, throw this exception and explain the cause.
Copyright © 2004-2013. All Rights Reserved.