public ThreadSpiderTest(String hostName, String startSite, String dirPath, Cobweb spiderEngine) {
		this.hostName = hostName;
		this.dirPath = dirPath;
		File indexDirectory = new File(dirPath);  
		if (!indexDirectory.exists()) {   
            indexDirectory.mkdirs();   
		}
		
		this.spiderEngine = spiderEngine;
//		for(int i=0;i<100;i++){
//			this.spiderEngine.checkLink(java.util.UUID.randomUUID().toString(), "http://zh.wikipedia.org");
//		}
	}