hudson.plugins.jabber.im
Class IMPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by hudson.plugins.jabber.im.IMPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
Direct Known Subclasses:
JabberPublisher

public abstract class IMPublisher
extends hudson.tasks.Notifier
implements hudson.tasks.BuildStep

The actual Publisher that sends notification-Messages out to the clients.

Author:
Uwe Schaefer

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
protected IMPublisher(java.lang.String targetsAsString, java.lang.String notificationStrategyString, boolean notifyGroupChatsOnBuildStart, boolean notifySuspects, boolean notifyFixers)
           
 
Method Summary
protected abstract  IMConnection getIMConnection()
           
protected  IMMessageTargetConverter getIMMessageTargetConverter()
           
protected  NotificationStrategy getNotificationStrategy()
           
 boolean getNotifyFixers()
           
 boolean getNotifyOnStart()
           
 boolean getNotifySuspects()
           
 java.lang.String getStrategy()
           
 java.lang.String getTargets()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener buildListener)
           
 boolean prebuild(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener buildListener)
           
 
Methods inherited from class hudson.tasks.Notifier
getDescriptor
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction
 

Constructor Detail

IMPublisher

protected IMPublisher(java.lang.String targetsAsString,
                      java.lang.String notificationStrategyString,
                      boolean notifyGroupChatsOnBuildStart,
                      boolean notifySuspects,
                      boolean notifyFixers)
               throws IMMessageTargetConversionException
Throws:
IMMessageTargetConversionException
Method Detail

getIMConnection

protected abstract IMConnection getIMConnection()
                                         throws IMException
Throws:
IMException

getIMMessageTargetConverter

protected IMMessageTargetConverter getIMMessageTargetConverter()

getNotificationStrategy

protected NotificationStrategy getNotificationStrategy()

getTargets

public final java.lang.String getTargets()

getStrategy

public final java.lang.String getStrategy()

getNotifyOnStart

public final boolean getNotifyOnStart()

getNotifySuspects

public final boolean getNotifySuspects()

getNotifyFixers

public final boolean getNotifyFixers()

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener buildListener)
                throws java.lang.InterruptedException,
                       java.io.IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
java.lang.InterruptedException
java.io.IOException

prebuild

public boolean prebuild(hudson.model.AbstractBuild<?,?> build,
                        hudson.model.BuildListener buildListener)
Specified by:
prebuild in interface hudson.tasks.BuildStep
Overrides:
prebuild in class hudson.tasks.BuildStepCompatibilityLayer


Copyright © 2009. All Rights Reserved.