|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universal.communication.ReceiverClient
This subclass implements the crash stop model receiver in the side of the client. It is waiting for AmAlive messages from the replicated servers.
Field Summary | |
(package private) java.net.Socket |
clientSocket
|
java.util.Vector |
processes
List of the replicated servers |
(package private) universal.UniversalClient |
uniClient
The Universal object this receiver is linked to |
Constructor Summary | |
ReceiverClient(universal.UniversalClient univClient)
Start the thread to listen for new messages to arrive |
Method Summary | |
universal.leader.LeaderCrashStopClient |
leader()
|
java.lang.Object |
receive()
Waits for new packet to arrive and then return as an Object the message that has been decoded. |
void |
run()
Waits for AmAlive messages and then informs the leader part of our algorithm that an AmAlive message has arrived. |
int |
totalno()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Vector processes
universal.UniversalClient uniClient
java.net.Socket clientSocket
Constructor Detail |
public ReceiverClient(universal.UniversalClient univClient)
Method Detail |
public universal.leader.LeaderCrashStopClient leader()
public java.lang.Object receive() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void run()
run
in interface java.lang.Runnable
public int totalno()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |