@Extension public static class SCMTrigger.DescriptorImpl extends TriggerDescriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Modifier and Type | Field and Description |
---|---|
boolean |
synchronousPolling
Whether the projects should be polled all in one go in the order of dependencies.
|
clazz
Constructor and Description |
---|
DescriptorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clogCheck()
Checks if the queue is clogged, and if so,
activate
SCMTrigger.AdministrativeMonitorImpl . |
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Invoked when the global configuration page is submitted.
|
FormValidation |
doCheckPollingThreadCount(String value) |
String |
getDisplayName()
Human readable name of this kind of configurable object.
|
ExecutorService |
getExecutor() |
List<SCMTriggerItem> |
getItemsBeingPolled() |
int |
getPollingThreadCount()
Gets the number of concurrent threads used for polling.
|
List<SCMTrigger.Runner> |
getRunners()
Gets the snapshot of
SCMTrigger.Runner s that are performing polling. |
boolean |
isApplicable(Item item)
Returns true if this trigger is applicable to the
given
Item . |
boolean |
isClogged()
Returns true if the SCM polling thread queue has too many jobs
than it can handle.
|
boolean |
isPollingThreadCountOptionVisible() |
void |
setPollingThreadCount(int n)
Sets the number of concurrent threads used for SCM polling and resizes the thread pool accordingly
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, 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
public boolean synchronousPolling
public boolean isApplicable(Item item)
TriggerDescriptor
Item
.isApplicable
in class TriggerDescriptor
public ExecutorService getExecutor()
public boolean isClogged()
public void clogCheck()
SCMTrigger.AdministrativeMonitorImpl
.public List<SCMTrigger.Runner> getRunners()
SCMTrigger.Runner
s that are performing polling.public List<SCMTriggerItem> getItemsBeingPolled()
public String getDisplayName()
Descriptor
getDisplayName
in class Descriptor<Trigger<?>>
public int getPollingThreadCount()
public void setPollingThreadCount(int n)
n
- number of concurrent threads, zero or less means unlimited, maximum is 100@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isPollingThreadCountOptionVisible()
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
Descriptor
configure
in class Descriptor<Trigger<?>>
json
- The JSON object that captures the configuration data for this Descriptor
.
See http://wiki.jenkins-ci.org/display/JENKINS/Structured+Form+SubmissionDescriptor.FormException
public FormValidation doCheckPollingThreadCount(@QueryParameter String value)
Copyright © 2014. All rights reserved.