org.jvnet.hudson.test
Class ChannelShutdownListener

java.lang.Object
  extended by hudson.slaves.ComputerListener
      extended by 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
ChannelShutdownListener()
           
 
Method Summary
 void onOnline(hudson.model.Computer c, hudson.model.TaskListener listener)
           
 void onTearDown()
          Called for clean up.
 
Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onLaunchFailure, onOffline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, preOnline, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelShutdownListener

public ChannelShutdownListener()
Method Detail

onOnline

public void onOnline(hudson.model.Computer c,
                     hudson.model.TaskListener listener)
              throws IOException,
                     InterruptedException
Overrides:
onOnline in class hudson.slaves.ComputerListener
Throws:
IOException
InterruptedException

onTearDown

public void onTearDown()
                throws Exception
Description copied from interface: EndOfTestListener
Called for clean up.

Specified by:
onTearDown in interface EndOfTestListener
Throws:
Exception


Copyright © 2004-2014. All Rights Reserved.