|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--viceroy.net.DummyCommunicationManager
Implementation of Communication manager
| Field Summary | |
ViceroyPeer |
entrancePoint
The entrance point of the net |
private static org.apache.log4j.Logger |
logger
logger for debug |
| Constructor Summary | |
DummyCommunicationManager()
|
|
| Method Summary | |
void |
addListener(Listener listener,
AuthorizedViceroyPeer bounded)
adds a new listener to the system. |
void |
discover(ViceroyPeer me)
finds the successor of me in the Viceroy network. |
void |
leave(AuthorizedViceroyPeer peer)
removes the given peer from the network. |
Address |
register(AuthorizedViceroyPeer peer)
registers a new ViceroyPeer in the system. |
void |
send(ViceroyPeer destination,
Message message)
send a message |
void |
setEntrancePoint(ViceroyPeer _entrancePoint)
Sets the entrance point of the net |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.apache.log4j.Logger logger
public ViceroyPeer entrancePoint
| Constructor Detail |
public DummyCommunicationManager()
| Method Detail |
public void setEntrancePoint(ViceroyPeer _entrancePoint)
_entrancePoint - The entrance pointpublic Address register(AuthorizedViceroyPeer peer)
register in interface ViceroyPeerManagerpeer - the peer to register
public void addListener(Listener listener,
AuthorizedViceroyPeer bounded)
addListener in interface ViceroyPeerManagerlistener - the listener to addbounded - the peer that the incoming messages specify as destinationpublic void discover(ViceroyPeer me)
discover in interface ViceroyPeerManagerme - The peer who wishes to find its successor - to initiate the discovery
process.
public void send(ViceroyPeer destination,
Message message)
send in interface ViceroyPeerManagerdestination - the destination of the messagemessage - the message to be sentpublic void leave(AuthorizedViceroyPeer peer)
leave in interface ViceroyPeerManagerpeer - the peer that leaves
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||