@Extension
public final class GlobalRabbitmqConfiguration
extends jenkins.model.GlobalConfiguration
修飾子とタイプ | フィールドと説明 |
---|---|
static String |
CONTENT_NONE
The string in global configuration that indicates content is empty.
|
コンストラクタと説明 |
---|
GlobalRabbitmqConfiguration()
Create GlobalRabbitmqConfiguration from disk.
|
GlobalRabbitmqConfiguration(boolean enableConsumer,
String serviceUri,
String userName,
hudson.util.Secret userPassword,
long watchdogPeriod,
List<RabbitmqConsumeItem> consumeItems,
boolean enableDebug)
Creates GlobalRabbitmqConfiguration instance with specified parameters.
|
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
hudson.util.FormValidation |
doCheckServiceUri(String value)
Checks given URI is valid.
|
hudson.util.FormValidation |
doTestConnection(String serviceUri,
String userName,
hudson.util.Secret userPassword)
Tests connection to given URI.
|
static GlobalRabbitmqConfiguration |
get()
Gets this extension's instance.
|
List<RabbitmqConsumeItem> |
getConsumeItems()
Gets the list of
RabbitmqConsumeItem . |
String |
getDisplayName() |
String |
getServiceUri()
Gets URI for RabbitMQ service.
|
String |
getUserName()
Gets username.
|
hudson.util.Secret |
getUserPassword()
Gets password.
|
long |
getWatchdogPeriod()
Gets the period for watchdog.
|
boolean |
isConsume(String queueName)
Gets specified queue is consumed or not.
|
boolean |
isEnableConsumer()
Gets whether this plugin is enabled or not.
|
boolean |
isEnableDebug()
Gets whether debug is enabled or not.
|
boolean |
isOpen()
Gets connection to service is established.
|
void |
setConsumeItems(List<RabbitmqConsumeItem> consumeItems)
Sets the list of
RabbitmqConsumeItem . |
void |
setEnableConsumer(boolean enableConsumer)
Sets flag whether this plugin is enabled or not.
|
void |
setEnableDebug(boolean enableDebug)
Sets flag whether debug is enabled or not.
|
void |
setServiceUri(String serviceUri)
Sets URI for RabbitMQ service.
|
void |
setUserName(String userName)
Sets username.
|
void |
setUserPassword(hudson.util.Secret userPassword)
Sets password.
|
void |
setUserPassword(String userPassword)
Sets password.
|
void |
setWatchdogPeriod(long watchdogPeriod)
Sets the period for watchdog.
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, 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 GlobalRabbitmqConfiguration(boolean enableConsumer, String serviceUri, String userName, hudson.util.Secret userPassword, long watchdogPeriod, List<RabbitmqConsumeItem> consumeItems, boolean enableDebug)
enableConsumer
- if this feature is enabled.serviceUri
- the service URI.userName
- the username.userPassword
- the password.watchdogPeriod
- the period for watchdog in milliseconds.consumeItems
- the list of consumer items.enableDebug
- true if debug is enabled.public GlobalRabbitmqConfiguration()
public String getDisplayName()
getDisplayName
クラス内 hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws hudson.model.Descriptor.FormException
configure
クラス内 hudson.model.Descriptor<jenkins.model.GlobalConfiguration>
hudson.model.Descriptor.FormException
public boolean isEnableDebug()
public void setEnableDebug(boolean enableDebug)
enableDebug
- true if debug is enabled.public boolean isEnableConsumer()
public void setEnableConsumer(boolean enableConsumer)
enableConsumer
- true if this plugin is enabled.public String getServiceUri()
public void setServiceUri(String serviceUri)
serviceUri
- the URI.public String getUserName()
public void setUserName(String userName)
userName
- the username.public hudson.util.Secret getUserPassword()
public void setUserPassword(hudson.util.Secret userPassword)
userPassword
- the password.public void setUserPassword(String userPassword)
userPassword
- the password.public long getWatchdogPeriod()
public void setWatchdogPeriod(long watchdogPeriod)
watchdogPeriod
- the period in milliseconds.public hudson.util.FormValidation doCheckServiceUri(@QueryParameter String value)
value
- the URI.public hudson.util.FormValidation doTestConnection(@QueryParameter(value="serviceUri") String serviceUri, @QueryParameter(value="userName") String userName, @QueryParameter(value="userPassword") hudson.util.Secret userPassword) throws javax.servlet.ServletException
serviceUri
- the URI.userName
- the username.userPassword
- the password.javax.servlet.ServletException
- exception for servlet.public List<RabbitmqConsumeItem> getConsumeItems()
RabbitmqConsumeItem
.RabbitmqConsumeItem
public void setConsumeItems(List<RabbitmqConsumeItem> consumeItems)
RabbitmqConsumeItem
.consumeItems
- the list of RabbitmqConsumeItem
@JavaScriptMethod public boolean isOpen()
@JavaScriptMethod public boolean isConsume(String queueName)
queueName
- the queue name.public static GlobalRabbitmqConfiguration get()
Copyright © 2016–2018. All rights reserved.