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.


Variable Index

 o msgID
 o NODEDONE
the reader is done with the node (read or dead)
 o nodeMsg
 o NOWREADING
the reader started reading a node

Constructor Index

 o ReadersMessage(int, LoadableNode)
Creates a new ReadersMessage.

Method Index

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

Variables

 o NOWREADING
 public static final int NOWREADING
the reader started reading a node

 o NODEDONE
 public static final int NODEDONE
the reader is done with the node (read or dead)

 o msgID
 private int msgID
 o nodeMsg
 private LoadableNode nodeMsg

Constructors

 o 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

Methods

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index