-
Notifications
You must be signed in to change notification settings - Fork 891
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
72 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
/** | ||
* 下载器名称 | ||
* | ||
* @return | ||
* @return 下载器名称 | ||
*/ | ||
String value(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
/** | ||
* 下载超时时间 | ||
* | ||
* @return | ||
* @return 下载超时时间 | ||
*/ | ||
int timeout() default 3000; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
* </pre> | ||
* | ||
* @author LiuJunGuang | ||
* @return | ||
* @return 是否取外部Html | ||
*/ | ||
public boolean outer() default false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 39 additions & 39 deletions
78
src/main/java/com/geccocrawler/gecco/listener/EventListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
package com.geccocrawler.gecco.listener; | ||
|
||
import com.geccocrawler.gecco.GeccoEngine; | ||
|
||
/** | ||
* 爬虫引擎生命周期监听器 | ||
* | ||
* @author LiuJunGuang | ||
*/ | ||
public interface EventListener { | ||
|
||
/** | ||
* 开始启动时,回调 | ||
* | ||
* @param ge | ||
*/ | ||
public void onStart(GeccoEngine ge); | ||
|
||
/** | ||
* 暂停时,回调 | ||
* | ||
* @param ge | ||
*/ | ||
public void onPause(GeccoEngine ge); | ||
|
||
/** | ||
* 恢复抓取时,回调 | ||
* | ||
* @param ge | ||
*/ | ||
public void onRestart(GeccoEngine ge); | ||
|
||
/** | ||
* 引擎停止时,回调 | ||
* | ||
* @param ge | ||
*/ | ||
public void onStop(GeccoEngine ge); | ||
} | ||
package com.geccocrawler.gecco.listener; | ||
|
||
import com.geccocrawler.gecco.GeccoEngine; | ||
|
||
/** | ||
* 爬虫引擎生命周期监听器 | ||
* | ||
* @author LiuJunGuang | ||
*/ | ||
public interface EventListener { | ||
|
||
/** | ||
* 开始启动时,回调 | ||
* | ||
* @param ge GeccoEngine | ||
*/ | ||
public void onStart(GeccoEngine ge); | ||
|
||
/** | ||
* 暂停时,回调 | ||
* | ||
* @param ge GeccoEngine | ||
*/ | ||
public void onPause(GeccoEngine ge); | ||
|
||
/** | ||
* 恢复抓取时,回调 | ||
* | ||
* @param ge GeccoEngine | ||
*/ | ||
public void onRestart(GeccoEngine ge); | ||
|
||
/** | ||
* 引擎停止时,回调 | ||
* | ||
* @param ge GeccoEngine | ||
*/ | ||
public void onStop(GeccoEngine ge); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters