com.pmease.quickbuild.extensionpoint
Class Notifier

java.lang.Object
  extended by com.pmease.quickbuild.extensionpoint.Notifier
Direct Known Subclasses:
SimpleNotifier

public abstract class Notifier
extends java.lang.Object

This extension point defines a notifier which can be used to send build notifications either forcibly or by subscription.


Constructor Summary
Notifier()
           
 
Method Summary
abstract  java.util.List<java.lang.String> getChannelNames()
          Get channel names of the notifier.
abstract  void notify(java.util.Map<java.lang.String,java.util.Set<User>> users, Build build)
          Notify a set of users upon finish of specified build.
abstract  void notify(NodeAlertEvent event)
          Notify a set of users with a node alert event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notifier

public Notifier()
Method Detail

getChannelNames

public abstract java.util.List<java.lang.String> getChannelNames()
Get channel names of the notifier. Multiple channel names can be returned so that different channel name can be configured with different set of receivers. For instance, email notifier may return two channels representing tolist and cclist respectively.

Returns:

notify

public abstract void notify(java.util.Map<java.lang.String,java.util.Set<User>> users,
                            Build build)
Notify a set of users upon finish of specified build.

Parameters:
users - a mapping of channel name to receivers.

notify

public abstract void notify(NodeAlertEvent event)
Notify a set of users with a node alert event

Parameters:
users - a mapping of channel name to receivers.
alert -


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.