@Extension
public static final class HudsonSoundsNotifier.HudsonSoundsDescriptor
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
| Modifier and Type | Class and Description |
|---|---|
static class |
HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite |
| Modifier and Type | Field and Description |
|---|---|
static hudson.util.VersionNumber |
STAPLER_JSON_BREAKING_CHANGE_VERSION_NUMBER |
| Constructor and Description |
|---|
HudsonSoundsDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
hudson.util.FormValidation |
doCheckPipeTimeout(int value) |
hudson.util.FormValidation |
doCheckSoundArchive(String value) |
hudson.util.FormValidation |
doCheckSystemCommand(String systemCommand) |
hudson.util.FormValidation |
doTestSound(String selectedSound,
String soundArchive,
String playMethod,
String systemCommand,
int pipeTimeoutSecs) |
protected static String |
getBiteName(String path) |
String |
getDisplayName() |
int |
getPipeTimeoutSecs() |
HudsonSoundsNotifier.PLAY_METHOD |
getPlayMethod() |
HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite |
getSound(String id) |
String |
getSoundArchive() |
protected InputStream |
getSoundBiteInputStream(HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite soundBite) |
List<HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> |
getSounds() |
String |
getSystemCommand() |
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> jobType) |
HudsonSoundsNotifier |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
protected void |
playSound(String id) |
protected void |
playSound(String id,
hudson.EnvVars vars) |
protected void |
playSound(String id,
Integer afterDelayMs,
hudson.EnvVars vars) |
protected void |
playSoundBite(AudioInputStream in) |
protected void |
playSoundFromUrl(URL url,
Integer afterDelayMs,
hudson.EnvVars vars) |
protected static TreeMap<String,HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> |
rebuildSoundsIndex(String urlString) |
void |
setPipeTimeoutSecs(int pipeTimeout) |
void |
setPlayMethod(HudsonSoundsNotifier.PLAY_METHOD playMethod) |
void |
setSoundArchive(String archive) |
void |
setSystemCommand(String systemCommand) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic static final hudson.util.VersionNumber STAPLER_JSON_BREAKING_CHANGE_VERSION_NUMBER
public List<HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> getSounds()
public HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite getSound(String id)
protected static TreeMap<String,HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> rebuildSoundsIndex(String urlString)
public String getSoundArchive()
public void setSoundArchive(String archive)
public HudsonSoundsNotifier.PLAY_METHOD getPlayMethod()
public void setPlayMethod(HudsonSoundsNotifier.PLAY_METHOD playMethod)
public String getSystemCommand()
public void setSystemCommand(String systemCommand)
public int getPipeTimeoutSecs()
public void setPipeTimeoutSecs(int pipeTimeout)
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
configure in class hudson.model.Descriptor<hudson.tasks.Publisher>public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>public HudsonSoundsNotifier newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>public hudson.util.FormValidation doTestSound(@QueryParameter
String selectedSound,
@QueryParameter
String soundArchive,
@QueryParameter
String playMethod,
@QueryParameter
String systemCommand,
@QueryParameter
int pipeTimeoutSecs)
public hudson.util.FormValidation doCheckPipeTimeout(@QueryParameter
int value)
public hudson.util.FormValidation doCheckSystemCommand(@QueryParameter
String systemCommand)
public hudson.util.FormValidation doCheckSoundArchive(@QueryParameter
String value)
protected void playSoundFromUrl(URL url, Integer afterDelayMs, hudson.EnvVars vars) throws UnplayableSoundBiteException
UnplayableSoundBiteExceptionprotected void playSound(String id) throws UnplayableSoundBiteException
UnplayableSoundBiteExceptionprotected void playSound(String id, hudson.EnvVars vars) throws UnplayableSoundBiteException
UnplayableSoundBiteExceptionprotected void playSound(String id, Integer afterDelayMs, hudson.EnvVars vars) throws UnplayableSoundBiteException
UnplayableSoundBiteExceptionprotected InputStream getSoundBiteInputStream(HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite soundBite) throws IOException
IOExceptionprotected void playSoundBite(AudioInputStream in) throws LineUnavailableException, IOException
LineUnavailableExceptionIOExceptionCopyright © 2004-2016. All Rights Reserved.