|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.bot.spider.Spider
public class Spider
Spider: This is the main class that implements the Heaton Research Spider.
| Field Summary | |
|---|---|
static int |
MILISECONDS2MINUTES
Milliseconds in a minute. |
static int |
WAIT4WORK
How many seconds to wait for work. |
| Constructor Summary | |
|---|---|
Spider(SpiderOptions options,
SpiderReportable report)
Construct a spider object. |
|
| Method Summary | |
|---|---|
void |
addURL(java.net.URL url,
java.net.URL source,
int depth)
Add a URL for processing. |
void |
cancel()
Set a flag that will cause the begin method to return before it is done. |
java.util.List<SpiderFilter> |
getFilters()
Get the list of filters for the spider. |
SpiderOptions |
getOptions()
Get the options for this spider. |
SpiderReportable |
getReport()
Get the object that the spider reports to. |
java.lang.String |
getStatus()
Generate basic status information about the spider. |
WorkloadManager |
getWorkloadManager()
Get the workload manager. |
void |
process()
Called to start the spider. |
void |
setReport(SpiderReportable report)
Set the report object to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MILISECONDS2MINUTES
public static final int WAIT4WORK
| Constructor Detail |
|---|
public Spider(SpiderOptions options,
SpiderReportable report)
options - The options to run the spider with.report - A class that implements the SpiderReportable interface, that
will receive information that the spider finds.| Method Detail |
|---|
public void addURL(java.net.URL url,
java.net.URL source,
int depth)
url - The URL to be added.source - Where the URL came from.depth - How deep is this URL.public void cancel()
public java.util.List<SpiderFilter> getFilters()
public SpiderOptions getOptions()
public SpiderReportable getReport()
public java.lang.String getStatus()
public WorkloadManager getWorkloadManager()
public void process()
public void setReport(SpiderReportable report)
report - The report object to use.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||