facilitator.java

来自「用java实现的一个bbs的portal」· Java 代码 · 共 43 行

JAVA
43
字号
/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: Jul 19, 2003
 * Time: 1:46:24 PM
 * To change this template use Options | File Templates.
 */
package Kernel;

import java.util.*;

import Classification.ArticleBatch;

public class Facilitator {

    static Hashtable ArticleDateTable = new Hashtable();




    public static void main(String[] args) {
        comTool.initLog();
        comTool.SpiderLog.warn("The Spider is Begin !");

        while(true){
            try{
                Thread.sleep(100000);       //100 sec
            }catch(Exception ex){
                ex.printStackTrace();
            }
            Date startDate = new Date();
            comTool.SpiderLog.info("Classify BBS Information Begin !");
            int classifyNum = ArticleBatch.HandleArticle();
            comTool.SpiderLog.info("Classify BBS Information End !");
            System.out.println("Start Time : "+startDate);
            System.out.println("End Time : "+new Date());
            System.out.println("Totally Handled "+classifyNum+" articles !");
            comTool.SpiderLog.info("Classify BBS Totally Handled "+classifyNum+" articles !");
        }
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?