org.jenkinsci.plugins.mailwatcher
Class WatcherComputerListener
java.lang.Object
hudson.slaves.ComputerListener
org.jenkinsci.plugins.mailwatcher.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 classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| 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 |
WatcherComputerListener
public WatcherComputerListener()
WatcherComputerListener
public WatcherComputerListener(MailWatcherMailer mailer,
String jenkinsRootUrl)
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.