Package org.jvnet.hudson.test
Class ChannelShutdownListener
java.lang.Object
hudson.slaves.ComputerListener
org.jvnet.hudson.test.ChannelShutdownListener
- All Implemented Interfaces:
hudson.ExtensionPoint,EndOfTestListener
@Extension
public class ChannelShutdownListener
extends hudson.slaves.ComputerListener
implements EndOfTestListener
Runs at the end of the test to cleanup any live channels.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonOnline(hudson.model.Computer c, hudson.model.TaskListener listener) voidCalled for clean up.Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onIdle, onLaunchFailure, onOffline, onOffline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, preOnline, register, unregister
-
Constructor Details
-
ChannelShutdownListener
public ChannelShutdownListener()
-
-
Method Details
-
onOnline
public void onOnline(hudson.model.Computer c, hudson.model.TaskListener listener) throws IOException, InterruptedException - Overrides:
onOnlinein classhudson.slaves.ComputerListener- Throws:
IOExceptionInterruptedException
-
onTearDown
Description copied from interface:EndOfTestListenerCalled for clean up.- Specified by:
onTearDownin interfaceEndOfTestListener- Throws:
Exception
-