org.planx.xmlstore.routing
Class NeighbourhoodListenerImpl

java.lang.Object
  extended by org.planx.xmlstore.routing.NeighbourhoodListenerImpl
All Implemented Interfaces:
NeighbourhoodListener

public class NeighbourhoodListenerImpl
extends Object
implements NeighbourhoodListener

When a new node is inserted into the neighbourhood of the local node a HashRequestMessage is sent to it.


Constructor Summary
NeighbourhoodListenerImpl(Node local)
          Note that the MessageServer must be set with setMessageServer(org.planx.xmlstore.routing.messaging.MessageServer) before use.
 
Method Summary
 void nodeArrived(Node node)
          A new node has been inserted in a bucket in the neighbourhood.
 void setMessageServer(MessageServer server)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeighbourhoodListenerImpl

public NeighbourhoodListenerImpl(Node local)
Note that the MessageServer must be set with setMessageServer(org.planx.xmlstore.routing.messaging.MessageServer) before use.

Method Detail

setMessageServer

public void setMessageServer(MessageServer server)

nodeArrived

public void nodeArrived(Node node)
Description copied from interface: NeighbourhoodListener
A new node has been inserted in a bucket in the neighbourhood. This does not include the local node.

Specified by:
nodeArrived in interface NeighbourhoodListener


DIKU 2003