提交 1512ac07 编写于 作者: K kohsuke

resettting trigger from Hudson

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11347 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d2dbaee3
......@@ -123,6 +123,7 @@ import java.util.StringTokenizer;
import java.util.TreeSet;
import java.util.Vector;
import java.util.Iterator;
import java.util.Timer;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
......@@ -323,6 +324,7 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
if(theInstance!=null)
throw new IllegalStateException("second instance");
theInstance = this;
Trigger.timer = new Timer("Hudson cron thread");
try {
dependencyGraph = DependencyGraph.EMPTY;
......
......@@ -202,8 +202,10 @@ public abstract class Trigger<J extends Item> implements Describable<Trigger<?>>
/**
* This timer is available for all the components inside Hudson to schedule
* some work.
*
* Initialized and cleaned up by {@link Hudson}, but value kept here for compatibility.
*/
public static Timer timer = new Timer("Hudson cron thread");
public static Timer timer;
public static void init() {
long MIN = 1000*60;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册