All Packages Class Hierarchy This Package Previous Next Index
Class Webcrawler.Crawler.ReadersMessage
java.lang.Object
|
+----Webcrawler.Crawler.ReadersMessage
- public class ReadersMessage
- extends Object
The Readers-object sends out such messages when one of the Reader-threads finished
working on a node.
-
msgID
-
-
NODEDONE
- the reader is done with the node (read or dead)
-
nodeMsg
-
-
NOWREADING
- the reader started reading a node
-
ReadersMessage(int, LoadableNode)
- Creates a new ReadersMessage.
-
getID()
-
-
getNode()
- the node that this message is about
NOWREADING
public static final int NOWREADING
- the reader started reading a node
NODEDONE
public static final int NODEDONE
- the reader is done with the node (read or dead)
msgID
private int msgID
nodeMsg
private LoadableNode nodeMsg
ReadersMessage
public ReadersMessage(int id,
LoadableNode theNode)
- Creates a new ReadersMessage.
- Parameters:
- id - one of the above MessageIDs (e.g: NODEDONE)
- theNode - the node that was read
getID
public int getID()
- Returns:
- the message-ID of this message
getNode
public LoadableNode getNode()
- the node that this message is about
All Packages Class Hierarchy This Package Previous Next Index