|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Handles the in and out communication for all local ViceroyPeers - all peers in a single machine Note: implementation of this interface will need to control all messages for all peers in a JVM, therefore it will probably be a Singleton class.
| 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 |
| Method Detail |
public Address register(AuthorizedViceroyPeer peer)
peer - the peer to register
public void leave(AuthorizedViceroyPeer peer)
peer - the peer that leaves
public void addListener(Listener listener,
AuthorizedViceroyPeer bounded)
listener - the listener to addbounded - the peer that the incoming messages specify as destination
public void send(ViceroyPeer destination,
Message message)
destination - the destination of the messagemessage - the message to be sentpublic void discover(ViceroyPeer me)
me - The peer who wishes to find its successor - to initiate the discovery
process.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||