|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetwork.NetworkListener
public abstract class NetworkListener
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
MessagingService messagingService
Constructor Detail |
---|
public NetworkListener()
Method Detail |
---|
protected abstract void receiveMessage(Message message)
messaging
module.
message
- - the Message from another user.protected abstract void receiveReplyFromDS(Object reply)
topology
module.
(uses TopologyService
).
reply
- - the information received from DSprotected abstract void receiveReplyFromNS(Object reply)
reply
- - the information receivedprotected abstract void receiveReplyFromAS(Object reply)
reply
- - the information received
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |