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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onOnline
(hudson.model.Computer c, hudson.model.TaskListener listener) void
Called 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:
onOnline
in classhudson.slaves.ComputerListener
- Throws:
IOException
InterruptedException
-
onTearDown
Description copied from interface:EndOfTestListener
Called for clean up.- Specified by:
onTearDown
in interfaceEndOfTestListener
- Throws:
Exception
-