|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.config.PluginConfig
public class PluginConfig
Configuration bean for the global plugin configuration.
Field Summary | |
---|---|
static int |
DEFAULT_NR_OF_RECEIVING_WORKER_THREADS
Default number of receiving worker threads. |
static int |
DEFAULT_NR_OF_SENDING_WORKER_THREADS
Default number of sending worker threads. |
Constructor Summary | |
---|---|
PluginConfig()
Constructs a config with default data. |
|
PluginConfig(net.sf.json.JSONObject formData)
Constructor. |
|
PluginConfig(net.sf.json.JSONObject formData,
org.kohsuke.stapler.StaplerRequest req)
Unused Constructor? |
|
PluginConfig(PluginConfig pluginConfig)
Copy constructor. |
Method Summary | |
---|---|
int |
getNumberOfReceivingWorkerThreads()
The number of threads to handle incoming events with. |
int |
getNumberOfSendingWorkerThreads()
The number of worker threads that sends approvals/review commands. |
int |
getReplicationCacheExpirationInMinutes()
Replication cache expiration in minutes. |
void |
setNumberOfReceivingWorkerThreads(int numberOfReceivingWorkerThreads)
NumberOfReceivingWorkerThreads. |
void |
setNumberOfSendingWorkerThreads(int numberOfSendingWorkerThreads)
NumberOfSendingWorkerThreads. |
void |
setReplicationCacheExpirationInMinutes(int replicationCacheExpirationInMinutes)
Replication cache expiration in minutes. |
void |
setValues(net.sf.json.JSONObject formData)
Sets all config values from the provided JSONObject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_NR_OF_RECEIVING_WORKER_THREADS
public static final int DEFAULT_NR_OF_SENDING_WORKER_THREADS
Constructor Detail |
---|
public PluginConfig()
public PluginConfig(net.sf.json.JSONObject formData)
formData
- the data.public PluginConfig(PluginConfig pluginConfig)
pluginConfig
- the PluginConfig object to be copied.public PluginConfig(net.sf.json.JSONObject formData, org.kohsuke.stapler.StaplerRequest req)
formData
- the datareq
- a path.Method Detail |
---|
public void setValues(net.sf.json.JSONObject formData)
formData
- the JSON object with form data.public int getNumberOfReceivingWorkerThreads()
getNumberOfReceivingWorkerThreads
in interface com.sonymobile.tools.gerrit.gerritevents.workers.GerritWorkersConfig
public void setNumberOfReceivingWorkerThreads(int numberOfReceivingWorkerThreads)
numberOfReceivingWorkerThreads
- nr of threads.getNumberOfReceivingWorkerThreads()
public int getNumberOfSendingWorkerThreads()
getNumberOfSendingWorkerThreads
in interface com.sonymobile.tools.gerrit.gerritevents.workers.GerritWorkersConfig
public void setNumberOfSendingWorkerThreads(int numberOfSendingWorkerThreads)
numberOfSendingWorkerThreads
- nr of threads.getNumberOfSendingWorkerThreads()
public int getReplicationCacheExpirationInMinutes()
public void setReplicationCacheExpirationInMinutes(int replicationCacheExpirationInMinutes)
replicationCacheExpirationInMinutes
- expiration time to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |