package market.thread.AutoJudge;

import CoreFS.SA01.CoreIComponent;

public class AutoJudgeMgt extends CoreIComponent {
	private static int runCopies = 0;
	private static Boolean shouldStop = false;
	private AutoJudgeThread autoJudgeThread = null;

	public static Boolean getShouldStop() {
		return shouldStop;
	}

	public AutoJudgeMgt() throws Exception {
		if (++runCopies == 1) {
			autoJudgeThread = new AutoJudgeThread();
			autoJudgeThread.setName("AutoJudgeThread");
			autoJudgeThread.setDaemon(true);
			autoJudgeThread.start();
		}
	}

}