Commit 136bcddb by zhiwei

修改线程池大小,并停止手机端知乎热搜采集

parent 0e21bba0
......@@ -24,7 +24,7 @@ public class HotSearchRun {
private ScheduledExecutorService scheduExec;
public HotSearchRun() {
this.scheduExec = Executors.newScheduledThreadPool(5);
this.scheduExec = Executors.newScheduledThreadPool(10);
}
public void showTimer() {
......
......@@ -22,8 +22,8 @@ public class ZhihuHotSearchRun extends Thread{
public void run() {
logger.info("知乎话题采集开始........");
List<HotSearchList> list = ZhihuHotSearchCrawler.getZhihuHotList();
List<HotSearchList> mobilelist = ZhihuHotSearchCrawler.getMobileZhihuHotList();
list.addAll(mobilelist);
// List<HotSearchList> mobilelist = ZhihuHotSearchCrawler.getMobileZhihuHotList();
// list.addAll(mobilelist);
logger.info("{}, 知乎此轮采集到的数据量为:{}", new Date(), Integer.valueOf(list != null ? list.size() : 0));
for(HotSearchList zhihuHotSearch : list){
DBObject zhihu = new BasicDBObject();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment