@Extension public final class EiffelBroadcasterConfig extends hudson.Plugin implements hudson.model.Describable<EiffelBroadcasterConfig>
| Modifier and Type | Class and Description |
|---|---|
static class |
EiffelBroadcasterConfig.DescriptorImpl
Implementation of the Descriptor interface.
|
| Constructor and Description |
|---|
EiffelBroadcasterConfig()
Load configuration on invoke.
|
EiffelBroadcasterConfig(boolean enableBroadcaster,
String serverUri,
String userName,
hudson.util.Secret userPassword,
String exchangeName,
String virtualHost,
String routingKey,
boolean persistentDelivery,
String appId)
Creates an instance with specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
String |
getAppId()
Returns application id.
|
hudson.model.Descriptor<EiffelBroadcasterConfig> |
getDescriptor()
Returns the descriptor instance.
|
String |
getExchangeName()
Gets the exchange name.
|
static EiffelBroadcasterConfig |
getInstance()
Gets this extension's instance.
|
boolean |
getPersistentDelivery()
Returns true if persistentDelivery is to be used.
|
String |
getRoutingKey()
Gets the routing key.
|
String |
getServerUri()
Gets URI for MQ server.
|
String |
getUserName()
Gets user name.
|
hudson.util.Secret |
getUserPassword()
Gets user password.
|
String |
getVirtualHost()
Gets the virtual host name.
|
boolean |
isBroadcasterEnabled()
Gets whether this plugin is enabled or not.
|
void |
setAppId(String appId)
Sets application id.
|
void |
setEnableBroadcaster(boolean enableBroadcaster)
Sets flag whether this plugin is enabled or not.
|
void |
setExchangeName(String exchangeName)
Sets the exchange name.
|
void |
setPersistentDelivery(boolean pd)
Sets persistent delivery mode.
|
void |
setRoutingKey(String routingKey)
Sets the routing key.
|
void |
setServerUri(String serverUri)
Sets URI for MQ server.
|
void |
setUserName(String userName)
Sets user name.
|
void |
setUserPassword(hudson.util.Secret userPassword)
Sets user password.
|
void |
setVirtualHost(String virtualHost)
Sets the virtual host name.
|
void |
start() |
@DataBoundConstructor
public EiffelBroadcasterConfig(boolean enableBroadcaster,
String serverUri,
String userName,
hudson.util.Secret userPassword,
String exchangeName,
String virtualHost,
String routingKey,
boolean persistentDelivery,
String appId)
enableBroadcaster - if this plugin is enabledserverUri - the server uriuserName - the user nameuserPassword - the user passwordexchangeName - the name of the exchangevirtualHost - the name of the virtual hostroutingKey - the routing keypersistentDelivery - if using persistent delivery modeappId - the application idpublic EiffelBroadcasterConfig()
public void start()
throws Exception
start in class hudson.PluginExceptionpublic void configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
configure in class hudson.PluginIOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionpublic boolean isBroadcasterEnabled()
public void setEnableBroadcaster(boolean enableBroadcaster)
enableBroadcaster - true if this plugin is enabled.public String getServerUri()
public void setServerUri(String serverUri)
serverUri - the URI.public String getUserName()
public void setUserName(String userName)
userName - the user name.public hudson.util.Secret getUserPassword()
public void setUserPassword(hudson.util.Secret userPassword)
userPassword - the user password.public static EiffelBroadcasterConfig getInstance()
Jenkins.getInstance() isn't available
or the plugin class isn't registered null will be returned.public String getExchangeName()
public void setExchangeName(String exchangeName)
exchangeName - the exchange name.public String getVirtualHost()
public void setVirtualHost(String virtualHost)
virtualHost - the exchange name.public String getRoutingKey()
public void setRoutingKey(String routingKey)
routingKey - the routing key.public boolean getPersistentDelivery()
public void setPersistentDelivery(boolean pd)
pd - if persistentDelivery is to be used.public String getAppId()
public void setAppId(String appId)
appId - Application id to usepublic hudson.model.Descriptor<EiffelBroadcasterConfig> getDescriptor()
getDescriptor in interface hudson.model.Describable<EiffelBroadcasterConfig>Copyright © 2016–2019. All rights reserved.