net.hurstfrost.hudson.sounds
Class HudsonSoundsNotifier.HudsonSoundsDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by net.hurstfrost.hudson.sounds.HudsonSoundsNotifier.HudsonSoundsDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
HudsonSoundsNotifier

@Extension
public static final class HudsonSoundsNotifier.HudsonSoundsDescriptor
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>


Nested Class Summary
static class HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite
           
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
static hudson.util.VersionNumber STAPLER_JSON_BREAKING_CHANGE_VERSION_NUMBER
           
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
HudsonSoundsNotifier.HudsonSoundsDescriptor()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
           
 hudson.util.FormValidation doCheckPipeTimeout(int value)
           
 hudson.util.FormValidation doCheckSoundArchive(java.lang.String value)
           
 hudson.util.FormValidation doCheckSystemCommand(java.lang.String systemCommand)
           
 hudson.util.FormValidation doTestSound(java.lang.String selectedSound, java.lang.String soundArchive, java.lang.String playMethod, java.lang.String systemCommand, int pipeTimeoutSecs)
           
protected static java.lang.String getBiteName(java.lang.String path)
           
 java.lang.String getDisplayName()
           
 int getPipeTimeoutSecs()
           
 HudsonSoundsNotifier.PLAY_METHOD getPlayMethod()
           
 HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite getSound(java.lang.String id)
           
 java.lang.String getSoundArchive()
           
protected  java.io.InputStream getSoundBiteInputStream(HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite soundBite)
           
 java.util.List<HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> getSounds()
           
 java.lang.String getSystemCommand()
           
 boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
           
 HudsonSoundsNotifier newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
protected  void playSound(java.lang.String id)
           
protected  void playSound(java.lang.String id, java.lang.Integer afterDelayMs)
           
protected  void playSoundBite(javax.sound.sampled.AudioInputStream in)
           
protected  void playSoundFromUrl(java.net.URL url, java.lang.Integer afterDelayMs)
           
protected static java.util.TreeMap<java.lang.String,HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> rebuildSoundsIndex(java.lang.String urlString)
           
 void setPipeTimeoutSecs(int pipeTimeout)
           
 void setPlayMethod(HudsonSoundsNotifier.PLAY_METHOD playMethod)
           
 void setSoundArchive(java.lang.String archive)
           
 void setSystemCommand(java.lang.String systemCommand)
           
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STAPLER_JSON_BREAKING_CHANGE_VERSION_NUMBER

public static final hudson.util.VersionNumber STAPLER_JSON_BREAKING_CHANGE_VERSION_NUMBER
Constructor Detail

HudsonSoundsNotifier.HudsonSoundsDescriptor

public HudsonSoundsNotifier.HudsonSoundsDescriptor()
Method Detail

getSounds

public java.util.List<HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> getSounds()

getSound

public HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite getSound(java.lang.String id)

rebuildSoundsIndex

protected static java.util.TreeMap<java.lang.String,HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> rebuildSoundsIndex(java.lang.String urlString)

getBiteName

protected static java.lang.String getBiteName(java.lang.String path)

getSoundArchive

public java.lang.String getSoundArchive()

setSoundArchive

public void setSoundArchive(java.lang.String archive)

getPlayMethod

public HudsonSoundsNotifier.PLAY_METHOD getPlayMethod()

setPlayMethod

public void setPlayMethod(HudsonSoundsNotifier.PLAY_METHOD playMethod)

getSystemCommand

public java.lang.String getSystemCommand()

setSystemCommand

public void setSystemCommand(java.lang.String systemCommand)

getPipeTimeoutSecs

public int getPipeTimeoutSecs()

setPipeTimeoutSecs

public void setPipeTimeoutSecs(int pipeTimeout)

isApplicable

public boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject json)
Overrides:
configure in class hudson.model.Descriptor<hudson.tasks.Publisher>

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>

newInstance

public HudsonSoundsNotifier newInstance(org.kohsuke.stapler.StaplerRequest req,
                                        net.sf.json.JSONObject formData)
Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>

doTestSound

public hudson.util.FormValidation doTestSound(@QueryParameter
                                              java.lang.String selectedSound,
                                              @QueryParameter
                                              java.lang.String soundArchive,
                                              @QueryParameter
                                              java.lang.String playMethod,
                                              @QueryParameter
                                              java.lang.String systemCommand,
                                              @QueryParameter
                                              int pipeTimeoutSecs)

doCheckPipeTimeout

public hudson.util.FormValidation doCheckPipeTimeout(@QueryParameter
                                                     int value)

doCheckSystemCommand

public hudson.util.FormValidation doCheckSystemCommand(@QueryParameter
                                                       java.lang.String systemCommand)

doCheckSoundArchive

public hudson.util.FormValidation doCheckSoundArchive(@QueryParameter
                                                      java.lang.String value)

playSoundFromUrl

protected void playSoundFromUrl(java.net.URL url,
                                java.lang.Integer afterDelayMs)
                         throws UnplayableSoundBiteException
Throws:
UnplayableSoundBiteException

playSound

protected void playSound(java.lang.String id)
                  throws UnplayableSoundBiteException
Throws:
UnplayableSoundBiteException

playSound

protected void playSound(java.lang.String id,
                         java.lang.Integer afterDelayMs)
                  throws UnplayableSoundBiteException
Throws:
UnplayableSoundBiteException

getSoundBiteInputStream

protected java.io.InputStream getSoundBiteInputStream(HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite soundBite)
                                               throws java.io.IOException
Throws:
java.io.IOException

playSoundBite

protected void playSoundBite(javax.sound.sampled.AudioInputStream in)
                      throws javax.sound.sampled.LineUnavailableException,
                             java.io.IOException
Throws:
javax.sound.sampled.LineUnavailableException
java.io.IOException


Copyright © 2013. All Rights Reserved.