net.hurstfrost.hudson.sounds
Class HudsonSoundsNotifier.HudsonSoundsDescriptor
java.lang.Object
hudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
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 classes/interfaces inherited from class hudson.model.Descriptor |
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| Fields inherited from class hudson.model.Descriptor |
clazz |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
| 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 |
STAPLER_JSON_BREAKING_CHANGE_VERSION_NUMBER
public static final hudson.util.VersionNumber STAPLER_JSON_BREAKING_CHANGE_VERSION_NUMBER
HudsonSoundsNotifier.HudsonSoundsDescriptor
public HudsonSoundsNotifier.HudsonSoundsDescriptor()
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.