public static void main(String[] args) {
		DaemonThread daemon = new DaemonThread();
		for (int i = 0; i < 1000; i++) {
			System.out.println(i);
			daemon.add(new String[] { "pattern" + i, "template" + i });
		}
		System.out.println("结束");
		daemon.setCompleted(true);
	}