@Extension public class SoundsAgentAction extends Object implements hudson.model.RootAction, hudson.model.Describable<SoundsAgentAction>
ExtensionPoint
that queues audio clips and serves them to a JS polling agent in Jenkins pages.Modifier and Type | Class and Description |
---|---|
static class |
SoundsAgentAction.SoundsAgentActionDescriptor |
Modifier and Type | Field and Description |
---|---|
protected static String |
COOKIE_NAME |
static int |
DEFAULT_POLL_INTERVAL |
static long |
EXPIRY_EXTENSION |
static int |
IMMEDIATE_POLL_INTERVAL |
static int |
LATENCY_COMPENSATION |
protected static String |
MUTE_COOKIE_NAME |
static int |
MUTED_POLL_INTERVAL |
static hudson.security.Permission |
PERMISSION |
static long |
SOUND_QUEUE_EXPIRATION_PERIOD_MS |
Constructor and Description |
---|
SoundsAgentAction() |
Modifier and Type | Method and Description |
---|---|
static hudson.ExtensionList<SoundsAgentAction> |
all() |
org.kohsuke.stapler.HttpResponse |
doCancelSounds() |
JSONHttpResponse |
doGetSounds(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
Integer version) |
org.kohsuke.stapler.HttpResponse |
doGlobalMute(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
org.kohsuke.stapler.HttpResponse |
doLocalMute(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
org.kohsuke.stapler.HttpResponse |
doPlaySound(String src,
Integer delay) |
org.kohsuke.stapler.HttpResponse |
doSound(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Stream out the specified sound.
|
SoundsAgentAction.SoundsAgentActionDescriptor |
getDescriptor() |
String |
getDisplayName() |
String |
getIconFileName() |
String |
getNextSound() |
HudsonSoundsNotifier.PLAY_METHOD |
getPlayMethod() |
String |
getRootURL() |
String |
getUrlName() |
boolean |
isGlobalMute() |
boolean |
isLocalMute() |
boolean |
isLocalMute(org.kohsuke.stapler.StaplerRequest req) |
protected boolean |
isMuted(org.kohsuke.stapler.StaplerRequest req) |
public static final int IMMEDIATE_POLL_INTERVAL
public static final int DEFAULT_POLL_INTERVAL
public static final int MUTED_POLL_INTERVAL
public static final long SOUND_QUEUE_EXPIRATION_PERIOD_MS
public static final long EXPIRY_EXTENSION
public static final int LATENCY_COMPENSATION
protected static final String COOKIE_NAME
protected static final String MUTE_COOKIE_NAME
public static final hudson.security.Permission PERMISSION
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getUrlName()
getUrlName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public SoundsAgentAction.SoundsAgentActionDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<SoundsAgentAction>
public static hudson.ExtensionList<SoundsAgentAction> all()
public String getRootURL()
public org.kohsuke.stapler.HttpResponse doPlaySound(@QueryParameter String src, @QueryParameter Integer delay)
public org.kohsuke.stapler.HttpResponse doCancelSounds()
public String getNextSound()
public JSONHttpResponse doGetSounds(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter Integer version)
public org.kohsuke.stapler.HttpResponse doSound(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
request
- request to extract sound parameters fromresponse
- unusedpublic org.kohsuke.stapler.HttpResponse doLocalMute(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
public boolean isLocalMute()
public boolean isLocalMute(org.kohsuke.stapler.StaplerRequest req)
public org.kohsuke.stapler.HttpResponse doGlobalMute(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
public HudsonSoundsNotifier.PLAY_METHOD getPlayMethod()
public boolean isGlobalMute()
protected boolean isMuted(org.kohsuke.stapler.StaplerRequest req)
Copyright © 2016–2022. All rights reserved.