|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
hudson.plugins.im.IMPublisher
public abstract class IMPublisher
The actual Publisher that sends notification-Messages out to the clients.
| 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.util.List<IMMessageTarget> defaultTargets,
java.lang.String notificationStrategyString,
boolean notifyGroupChatsOnBuildStart,
boolean notifySuspects,
boolean notifyCulprits,
boolean notifyFixers,
boolean notifyUpstreamCommitters)
Deprecated. as of 1.9. Use IMPublisher(List, String, boolean, boolean, boolean, boolean, boolean, BuildToChatNotifier)
instead. |
protected |
IMPublisher(java.util.List<IMMessageTarget> defaultTargets,
java.lang.String notificationStrategyString,
boolean notifyGroupChatsOnBuildStart,
boolean notifySuspects,
boolean notifyCulprits,
boolean notifyFixers,
boolean notifyUpstreamCommitters,
BuildToChatNotifier buildToChatNotifier)
|
| Method Summary | |
|---|---|
protected java.util.List<IMMessageTarget> |
calculateTargets()
Returns the notification target which should actually be used for notification. |
BuildToChatNotifier |
getBuildToChatNotifier()
|
protected abstract java.lang.String |
getConfiguredIMId(hudson.model.User user)
Returns the instant-messaging ID which is configured for a Hudson user (e.g. via a UserProperty) or null if there's nothing configured for
him/her. |
abstract hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> |
getDescriptor()
|
protected abstract IMConnection |
getIMConnection()
|
protected IMPublisherDescriptor |
getIMDescriptor()
|
protected NotificationStrategy |
getNotificationStrategy()
|
java.util.List<IMMessageTarget> |
getNotificationTargets()
Returns the notification targets configured on a per-job basis. |
boolean |
getNotifyCulprits()
Specifies if culprits - i.e. committers to previous already failing builds - should be informed about subsequent build failures. |
boolean |
getNotifyFixers()
Specifies if 'fixers' should be informed about fixed builds. |
boolean |
getNotifyOnStart()
Specifies if the starting of builds should be notified to the registered chat rooms. |
boolean |
getNotifySuspects()
Specifies if committers to failed builds should be informed about build failures. |
boolean |
getNotifyUpstreamCommitters()
Specifies if upstream committers should be informed about build failures. |
protected abstract java.lang.String |
getPluginName()
Returns a short name of the plugin to be used e.g. in log messages. |
java.lang.String |
getStrategy()
Returns the selected notification strategy as a string suitable for display. |
java.lang.String |
getTargets()
Returns the notification targets as a string suitable for display in the settings page. |
protected void |
log(hudson.model.BuildListener listener,
java.lang.String message)
Logs message to the build listener's logger. |
boolean |
needsToRunAfterFinalized()
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener buildListener)
|
boolean |
prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener buildListener)
|
protected java.lang.Object |
readResolve()
|
protected void |
setNotificationStrategy(NotificationStrategy strategy)
|
protected void |
setNotificationTargets(java.util.List<IMMessageTarget> targets)
Deprecated. Should only be used to deserialize old instances |
protected void |
setTargets(java.lang.String targetsAsString)
Deprecated. |
| Methods inherited from class hudson.tasks.Publisher |
|---|
all, getProjectAction, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
|---|
getProjectAction, getProjectActions, 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, getProjectActions, getRequiredMonitorService |
| Constructor Detail |
|---|
@Deprecated
protected IMPublisher(java.util.List<IMMessageTarget> defaultTargets,
java.lang.String notificationStrategyString,
boolean notifyGroupChatsOnBuildStart,
boolean notifySuspects,
boolean notifyCulprits,
boolean notifyFixers,
boolean notifyUpstreamCommitters)
IMPublisher(List, String, boolean, boolean, boolean, boolean, boolean, BuildToChatNotifier)
instead.
protected IMPublisher(java.util.List<IMMessageTarget> defaultTargets,
java.lang.String notificationStrategyString,
boolean notifyGroupChatsOnBuildStart,
boolean notifySuspects,
boolean notifyCulprits,
boolean notifyFixers,
boolean notifyUpstreamCommitters,
BuildToChatNotifier buildToChatNotifier)
| Method Detail |
|---|
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized in class hudson.tasks.Publisherprotected abstract java.lang.String getPluginName()
protected abstract IMConnection getIMConnection()
throws IMException
IMExceptionprotected NotificationStrategy getNotificationStrategy()
protected void setNotificationStrategy(NotificationStrategy strategy)
public BuildToChatNotifier getBuildToChatNotifier()
public java.util.List<IMMessageTarget> getNotificationTargets()
protected java.util.List<IMMessageTarget> calculateTargets()
getNotificationTargets() because it also takes
IMPublisherDescriptor.getDefaultTargets() into account!
public java.lang.String getTargets()
@Deprecated
protected void setTargets(java.lang.String targetsAsString)
throws IMMessageTargetConversionException
IMMessageTargetConversionException@Deprecated protected void setNotificationTargets(java.util.List<IMMessageTarget> targets)
public final java.lang.String getStrategy()
public final boolean getNotifyOnStart()
public final boolean getNotifySuspects()
public final boolean getNotifyCulprits()
public final boolean getNotifyFixers()
public final boolean getNotifyUpstreamCommitters()
protected void log(hudson.model.BuildListener listener,
java.lang.String message)
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener buildListener)
throws java.lang.InterruptedException,
java.io.IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerjava.lang.InterruptedException
java.io.IOException
public boolean prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener buildListener)
prebuild in interface hudson.tasks.BuildStepprebuild in class hudson.tasks.BuildStepCompatibilityLayerpublic abstract hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Notifierprotected java.lang.Object readResolve()
protected final IMPublisherDescriptor getIMDescriptor()
protected abstract java.lang.String getConfiguredIMId(hudson.model.User user)
UserProperty) or null if there's nothing configured for
him/her.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||