All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Webcrawler.Crawler.ParsersMessage

java.lang.Object
   |
   +----Webcrawler.Crawler.ParsersMessage

public class ParsersMessage
extends Object
The Parsers-object sends out such messages when one of the Parser-threads finished parsing a node's localfile.


Variable Index

 o msgID
 o NEWSON
A new son was found in this node.
 o NODEDONE
A Parser-thread finished parsing a node.
 o nodeMsg
 o NOWPARSING
A Parser-thread started parsing a node.

Constructor Index

 o ParsersMessage(int, URLNode)
Creates a new ParsersMessage.

Method Index

 o getID()
 o getNode()
the node that this message is about

Variables

 o NOWPARSING
 public static final int NOWPARSING
A Parser-thread started parsing a node.

 o NEWSON
 public static final int NEWSON
A new son was found in this node.

 o NODEDONE
 public static final int NODEDONE
A Parser-thread finished parsing a node.

 o msgID
 private int msgID
 o nodeMsg
 private URLNode nodeMsg

Constructors

 o ParsersMessage
 public ParsersMessage(int id,
                       URLNode theNode)
Creates a new ParsersMessage.

Parameters:
id - one of the above MessageIDs (e.g: NODEDONE, NEWSON)
theNode - the node that was parsed/found

Methods

 o getID
 public int getID()
Returns:
the message-ID of this message
 o getNode
 public URLNode getNode()
the node that this message is about


All Packages  Class Hierarchy  This Package  Previous  Next  Index