@Extension public class WinswSlaveRestarter extends SlaveRestarter
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
WinswSlaveRestarter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canWork()
Called on the agent to see if this restarter can work on this agent.
|
void |
restart()
If
SlaveRestarter.canWork() method returns true, this method is called later when
the connection is lost to restart the agent. |
all
public boolean canWork()
SlaveRestarter
canWork
in class SlaveRestarter
public void restart() throws Exception
SlaveRestarter
SlaveRestarter.canWork()
method returns true, this method is called later when
the connection is lost to restart the agent.
Note that by the time this method is called, classloader is no longer capable of
loading any additional classes. Therefore SlaveRestarter.canWork()
method must have
exercised enough of the actual restart process so that this call can proceed
without trying to load additional classes nor resources.
This method is not expected to return, and the JVM should terminate before this call returns. If the method returns normally, the agent will move on to the reconnection without restart. If an exception is thrown, it is reported as an error and then the agent will move on to the reconnection without restart.
restart
in class SlaveRestarter
Exception
Copyright © 2004–2021. All rights reserved.