network
Class NetworkListener

java.lang.Object
  extended by network.NetworkListener

public abstract class NetworkListener
extends Object

Implements a network listener, waiting for communication from other devices or from remote services. It parses the incoming communication and forwards it to other components.


Field Summary
(package private)  MessagingService messagingService
           
(package private)  TopologyService topologyService
           
 
Constructor Summary
NetworkListener()
           
 
Method Summary
protected abstract  void receiveMessage(Message message)
          Receives a message from another user via the remote MessagingService.
protected abstract  void receiveReplyFromAS(Object reply)
          Receives reply to a request from the Authetication Service.
protected abstract  void receiveReplyFromDS(Object reply)
          Receives reply to a request from the Discovery Service.
protected abstract  void receiveReplyFromNS(Object reply)
          Receives reply to a request from the Naming Service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topologyService

TopologyService topologyService

messagingService

MessagingService messagingService
Constructor Detail

NetworkListener

public NetworkListener()
Method Detail

receiveMessage

protected abstract void receiveMessage(Message message)
Receives a message from another user via the remote MessagingService. Forwards the message to the messaging module.

Parameters:
message - - the Message from another user.

receiveReplyFromDS

protected abstract void receiveReplyFromDS(Object reply)
Receives reply to a request from the Discovery Service. Forwards it to the topology module. (uses TopologyService).

Parameters:
reply - - the information received from DS

receiveReplyFromNS

protected abstract void receiveReplyFromNS(Object reply)
Receives reply to a request from the Naming Service. Forwards it to the component from which the request originated.

Parameters:
reply - - the information received

receiveReplyFromAS

protected abstract void receiveReplyFromAS(Object reply)
Receives reply to a request from the Authetication Service. Forwards it to the component from which the request originated.

Parameters:
reply - - the information received