コード例 #1
0
ファイル: SCMTrigger.java プロジェクト: hehonghui/hudson.core
 /** Update the {@link ExecutorService} instance. */
 /*package*/ synchronized void resizeThreadPool() {
   queue.setExecutors(
       (maximumThreads == 0
           ? Executors.newCachedThreadPool()
           : Executors.newFixedThreadPool(maximumThreads)));
 }
コード例 #2
0
ファイル: SCMTrigger.java プロジェクト: hehonghui/hudson.core
 /** Returns true if the SCM polling thread queue has too many jobs than it can handle. */
 public boolean isClogged() {
   return queue.isStarving(STARVATION_THRESHOLD);
 }
コード例 #3
0
ファイル: SCMTrigger.java プロジェクト: hehonghui/hudson.core
 /** Gets the snapshot of {@link Runner}s that are performing polling. */
 public List<Runner> getRunners() {
   return Util.filter(queue.getInProgress(), Runner.class);
 }
コード例 #4
0
ファイル: SCMTrigger.java プロジェクト: hehonghui/hudson.core
 public ExecutorService getExecutor() {
   return queue.getExecutors();
 }