????public void run() {

????Random rd = new Random();

????int index = rd.nextInt(60);

????if (index < 10){

????index = index + 10;

????}

????String indexStr = Integer.toString(index);

????String path = indexStr+”-”+indexStr+”-”+indexStr+”/”;

????LogGetter logGetter = new LogGetter();

????logGetter.setPath(path);

????String runningLog = logGetter.getRunningLog(0L);

????if(runningLog.contains( “T3_000000000″ + indexStr)){

????System.out.println(“==============>”+”exit”);

????}else

????{

????String[] lines = runningLog.split(“ ”);

????System.out.println(“????:” + indexStr + “ ” + “?????????” + lines[0] + “ ”);

????}

????}

????}

????}

??????λ?????????????????????????????????????д???parserQuery?????????????url????????url???в??????????

????Map params = HttpUtils.parseQuery(httpExchange.getRequestURI().getQuery());

????public static Map parserQuery(String query) throws UnsupportedEncodingException {

????Map parameters = new HashMap();

????if (query != null) {

????String pairs[] = query.split(“[&]“);

????for (String pair : pairs) {

????String param[] = pair.split(“[=]“);

????String key = null;

????String value = null;

????if (param.length > 0) {

????key = URLDecoder.decode(param[0]?? System.getProperty(“file.encoding”));

????}

????if (param.length > 1) {

????value = URLDecoder.decode(param[1]?? System.getProperty(“file.encoding”));

????}

????parameters.put(key?? value);

????}

????}

????return parameters;

????}

??????????μ?params??????????1000????????10000??50000????????????????????????????????????