@Extension public final class MQNotifierConfig extends hudson.Plugin implements hudson.model.Describable<MQNotifierConfig>
| Modifier and Type | Class and Description |
|---|---|
static class |
MQNotifierConfig.DescriptorImpl
Implementation of the Descriptor interface.
|
| Constructor and Description |
|---|
MQNotifierConfig()
Load configuration on invoke.
|
MQNotifierConfig(boolean enableNotifier,
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<MQNotifierConfig> |
getDescriptor()
Returns the descriptor instance.
|
String |
getExchangeName()
Gets the exchange name.
|
static MQNotifierConfig |
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 |
isNotifierEnabled()
Gets whether this plugin is enabled or not.
|
void |
setAppId(String appId)
Sets application id.
|
void |
setEnableNotifier(boolean enableNotifier)
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 MQNotifierConfig(boolean enableNotifier,
String serverUri,
String userName,
hudson.util.Secret userPassword,
String exchangeName,
String virtualHost,
String routingKey,
boolean persistentDelivery,
String appId)
enableNotifier - 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 MQNotifierConfig()
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 isNotifierEnabled()
public void setEnableNotifier(boolean enableNotifier)
enableNotifier - 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 MQNotifierConfig getInstance()
If 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<MQNotifierConfig> getDescriptor()
getDescriptor in interface hudson.model.Describable<MQNotifierConfig>Copyright © 2004-2018. All Rights Reserved.