@Extension
public final class MQNotifierConfig
extends jenkins.model.GlobalConfiguration
| Constructor and Description |
|---|
MQNotifierConfig()
Load configuration on invoke.
|
MQNotifierConfig(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 |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.FormValidation |
doTestConnection(String uri,
String name,
hudson.util.Secret pw)
Tests connection to the server URI.
|
static MQNotifierConfig |
get()
Gets this extension's instance.
|
String |
getAppId()
Returns application id.
|
String |
getExchangeName()
Gets the exchange name.
|
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.
|
void |
setAppId(String appId)
Sets application id.
|
void |
setDeliveryMode(boolean pd)
Sets persistent delivery mode.
|
void |
setExchangeName(String exchangeName)
Sets the exchange name.
|
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 |
setVirtualHost(String virtualHost)
Sets the virtual host name.
|
all, getCategory, getDescriptor, getDisplayName, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@DataBoundConstructor public MQNotifierConfig(String serverUri, String userName, hudson.util.Secret userPassword, String exchangeName, String virtualHost, String routingKey, boolean persistentDelivery, String appId)
serverUri - 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 boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>hudson.model.Descriptor.FormExceptionpublic 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 static MQNotifierConfig get()
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 setDeliveryMode(boolean pd)
pd - if persistentDelivery is to be used.public String getAppId()
public void setAppId(String appId)
appId - Application id to usepublic hudson.util.FormValidation doTestConnection(@QueryParameter(value="serverUri")
String uri,
@QueryParameter(value="userName")
String name,
@QueryParameter(value="userPassword")
hudson.util.Secret pw)
throws javax.servlet.ServletException
uri - the URI.name - the user name.pw - the user password.javax.servlet.ServletException - Exception for servlet.Copyright © 2004-2016. All Rights Reserved.