de.rw7.htmltools.test
Class SpiderTest
java.lang.Object
|
+--de.rw7.htmltools.test.SpiderTest
- All Implemented Interfaces:
- LinkFrontend
- public class SpiderTest
- extends java.lang.Object
- implements LinkFrontend
Relies on consistent enumeration order of hashtable!
| Method Summary |
private void |
alarm(java.lang.String s)
|
static java.lang.String |
getStateString(int state)
|
static void |
main(java.lang.String[] args)
|
void |
onAbsent(LinkTag tag)
Notifies the frontend that an url is found to be broken. |
void |
onEnd()
Notifies the frontend, that the spider has terminated itself normally. |
void |
onLookup(LinkTag tag, int thread)
Notifies the frontend whenever a url is getting checked. |
void |
onTarget(LinkTarget target)
Notifies the frontend, that a target frame name changed it's state. |
void |
onWaiting(int thread)
Notifies the Frontend, that a spider thread is waiting because lack of work. |
void |
runVerify()
|
| Methods inherited from class java.lang.Object |
<clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
spider
LinkSpider spider
nThreads
int nThreads
SpiderTest
public SpiderTest()
runVerify
public void runVerify()
onLookup
public void onLookup(LinkTag tag,
int thread)
- Description copied from interface:
LinkFrontend
- Notifies the frontend whenever a url is getting checked.
-
- Specified by:
onLookup in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- Parameters:
tag - the url getting checked.
thread - the thread which processes this url.
onWaiting
public void onWaiting(int thread)
- Description copied from interface:
LinkFrontend
- Notifies the Frontend, that a spider thread is waiting because lack of work.
-
- Specified by:
onWaiting in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- Parameters:
thread - the thread waiting.
onAbsent
public void onAbsent(LinkTag tag)
- Description copied from interface:
LinkFrontend
- Notifies the frontend that an url is found to be broken.
-
- Specified by:
onAbsent in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- Parameters:
tag - the invalid url
onTarget
public void onTarget(LinkTarget target)
- Description copied from interface:
LinkFrontend
- Notifies the frontend, that a target frame name changed it's state.
-
- Specified by:
onTarget in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- Parameters:
target - the target changed
alarm
private void alarm(java.lang.String s)
onEnd
public void onEnd()
- Description copied from interface:
LinkFrontend
- Notifies the frontend, that the spider has terminated itself normally. Not called, when the spider is aborted via stop.
-
- Specified by:
onEnd in interface LinkFrontend
- Following copied from interface:
de.rw7.htmltools.LinkFrontend
-
- See Also:
LinkSpider.stop()
main
public static void main(java.lang.String[] args)
getStateString
public static final java.lang.String getStateString(int state)