Class WatcherComputerListener
- java.lang.Object
-
- hudson.slaves.ComputerListener
-
- org.jenkinsci.plugins.mailwatcher.WatcherComputerListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class WatcherComputerListener extends 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
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description WatcherComputerListener()
WatcherComputerListener(MailWatcherMailer mailer, String jenkinsRootUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onOffline(Computer c)
void
onOffline(Computer c, OfflineCause cause)
void
onOnline(Computer c, TaskListener listener)
void
onTemporarilyOffline(Computer c, OfflineCause cause)
void
onTemporarilyOnline(Computer c)
-
Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onLaunchFailure, onOnline, preLaunch, preOnline, register, unregister
-
-
-
-
Constructor Detail
-
WatcherComputerListener
public WatcherComputerListener()
-
WatcherComputerListener
public WatcherComputerListener(MailWatcherMailer mailer, String jenkinsRootUrl)
-
-
Method Detail
-
onOffline
public void onOffline(Computer c)
- Overrides:
onOffline
in classComputerListener
-
onOffline
public void onOffline(@NonNull Computer c, OfflineCause cause)
- Overrides:
onOffline
in classComputerListener
-
onOnline
public void onOnline(Computer c, TaskListener listener)
- Overrides:
onOnline
in classComputerListener
-
onTemporarilyOffline
public void onTemporarilyOffline(Computer c, OfflineCause cause)
- Overrides:
onTemporarilyOffline
in classComputerListener
-
onTemporarilyOnline
public void onTemporarilyOnline(Computer c)
- Overrides:
onTemporarilyOnline
in classComputerListener
-
-