|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Descriptor<Trigger<?>>
hudson.triggers.TriggerDescriptor
hudson.triggers.SCMTrigger.DescriptorImpl
@Extension public static class SCMTrigger.DescriptorImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self |
| Field Summary | |
|---|---|
boolean |
synchronousPolling
Whether the projects should be polled all in one go in the order of dependencies. |
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
SCMTrigger.DescriptorImpl()
|
|
| Method Summary | |
|---|---|
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<SCMedItem> |
getItemsBeingPolled()
Gets the snapshot of SCMedItems that are being polled at this very moment. |
int |
getPollingThreadCount()
Gets the number of concurrent threads used for polling. |
List<SCMTrigger.Runner> |
getRunners()
Gets the snapshot of SCMTrigger.Runners 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. |
void |
setPollingThreadCount(int n)
Sets the number of concurrent threads used for SCM polling and resizes the thread pool accordingly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean synchronousPolling
| Constructor Detail |
|---|
public SCMTrigger.DescriptorImpl()
| Method Detail |
|---|
public boolean isApplicable(Item item)
TriggerDescriptorItem.
isApplicable in class TriggerDescriptorpublic ExecutorService getExecutor()
public boolean isClogged()
public void clogCheck()
SCMTrigger.AdministrativeMonitorImpl.
public List<SCMTrigger.Runner> getRunners()
SCMTrigger.Runners that are performing polling.
public List<SCMedItem> getItemsBeingPolled()
SCMedItems that are being polled at this very moment.
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
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+Submission
Descriptor.FormException
public FormValidation doCheckPollingThreadCount(@QueryParameter
String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||