| |
|
| java.lang.Object java.lang.Thread org.archive.crawler.framework.ToeThread
ToeThread | public ToeThread(ToePool g, int sn)(Code) | | Create a ToeThread
Parameters: g - ToeThreadGroup Parameters: sn - serial number |
getController | public CrawlController getController()(Code) | | Get the CrawlController acossiated with this thread.
Returns the CrawlController. |
getCurrentProcessorName | public String getCurrentProcessorName()(Code) | | |
getSerialNumber | public int getSerialNumber()(Code) | | Return toe thread serial number. |
getStep | public Object getStep()(Code) | | Current step (For debugging/reporting, give abstract stepwhere this thread is). |
isActive | public boolean isActive()(Code) | | Is this thread processing a URI, not paused or waiting for a URI?
whether thread is actively processing a URI |
kill | protected void kill()(Code) | | Terminates a thread.
Calling this method will ensure that the current thread will stop
processing as soon as possible (note: this may be never). Meant to
'short circuit' hung threads.
Current crawl uri will have its fetch status set accordingly and
will be immediately returned to the frontier.
As noted before, this does not ensure that the thread will stop
running (ever). But once evoked it will not try and communicate with
other parts of crawler and will terminate as soon as control is
established.
|
progressStatisticsLegend | public void progressStatisticsLegend(PrintWriter writer)(Code) | | |
reportTo | public void reportTo(String name, PrintWriter pw)(Code) | | Compiles and returns a report on its status.
Parameters: name - Report name. Parameters: pw - Where to print. |
retire | public void retire()(Code) | | Request that this thread retire (exit cleanly) at the earliest
opportunity.
|
shouldRetire | public boolean shouldRetire()(Code) | | Whether this thread should cleanly retire at the earliest
opportunity.
True if should retire. |
singleLineReportTo | public void singleLineReportTo(PrintWriter w)(Code) | | Parameters: w - PrintWriter to write to. |
|
|
|