com.pmease.quickbuild.extensionpoint
Class SimpleNotifier

java.lang.Object
  extended by com.pmease.quickbuild.extensionpoint.Notifier
      extended by com.pmease.quickbuild.extensionpoint.SimpleNotifier

public abstract class SimpleNotifier
extends Notifier

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


Constructor Summary
SimpleNotifier()
           
 
Method Summary
 java.util.List<java.lang.String> getChannelNames()
          Get channel names of the notifier.
abstract  java.lang.String getName()
          Get name of the notifier.
 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(java.util.Set<User> users, Build build)
          Notify a set of users upon finish of specified build.
 
Methods inherited from class com.pmease.quickbuild.extensionpoint.Notifier
notify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleNotifier

public SimpleNotifier()
Method Detail

getChannelNames

public final java.util.List<java.lang.String> getChannelNames()
Description copied from class: Notifier
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.

Specified by:
getChannelNames in class Notifier
Returns:

getName

public abstract java.lang.String getName()
Get name of the notifier.

Returns:

notify

public final void notify(java.util.Map<java.lang.String,java.util.Set<User>> users,
                         Build build)
Description copied from class: Notifier
Notify a set of users upon finish of specified build.

Specified by:
notify in class Notifier
Parameters:
users - a mapping of channel name to receivers.

notify

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



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