package market.thread.tcpTempHum;

import CoreFS.SA01.CoreIComponent;

public class TempHumServletMgt extends CoreIComponent {
	private static int runCopies = 0;
	private static Boolean shouldStop = false;
	private TempHumServletThread temphumThread = null;

	public static Boolean getShouldStop() {
		return shouldStop;
	}

	public TempHumServletMgt() throws Exception {
		if (++runCopies == 1) {
			temphumThread = new TempHumServletThread();
			temphumThread.setName("TempHumThread");
			temphumThread.setDaemon(true);
			temphumThread.start();
		}
	}

}