org.jenkinsci.plugins
Class WatcherComputerListener

java.lang.Object
  extended by hudson.slaves.ComputerListener
      extended by org.jenkinsci.plugins.WatcherComputerListener
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class WatcherComputerListener
extends hudson.slaves.ComputerListener

Notify whenever Computer marked online/offline. Sends email do the list of recipients on following events: onOffline, onOnline, onTemporarilyOffline and onTemporarilyOnline.

Author:
ogondza

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
WatcherComputerListener()
           
WatcherComputerListener(MailWatcherMailer mailer, String jenkinsRootUrl)
           
 
Method Summary
 void onOffline(hudson.model.Computer c)
           
 void onOnline(hudson.model.Computer c, hudson.model.TaskListener listener)
           
 void onTemporarilyOffline(hudson.model.Computer c, hudson.slaves.OfflineCause cause)
           
 void onTemporarilyOnline(hudson.model.Computer c)
           
 
Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onLaunchFailure, onOnline, preLaunch, preOnline, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatcherComputerListener

public WatcherComputerListener()

WatcherComputerListener

public WatcherComputerListener(MailWatcherMailer mailer,
                               String jenkinsRootUrl)
Method Detail

onOffline

public void onOffline(hudson.model.Computer c)
Overrides:
onOffline in class hudson.slaves.ComputerListener

onOnline

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

onTemporarilyOffline

public void onTemporarilyOffline(hudson.model.Computer c,
                                 hudson.slaves.OfflineCause cause)
Overrides:
onTemporarilyOffline in class hudson.slaves.ComputerListener

onTemporarilyOnline

public void onTemporarilyOnline(hudson.model.Computer c)
Overrides:
onTemporarilyOnline in class hudson.slaves.ComputerListener


Copyright © 2004-2012. All Rights Reserved.