|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universal.leader.LeaderCrashStopClient
This is the implementation of the leader part of the algorithm in the client side. As it is now it can be use also for the crash recovery model without big changes.
Nested Class Summary | |
protected class |
LeaderCrashStopClient.trustListElement
|
Field Summary | |
LeaderCrashStopClient.trustListElement[] |
trustList
trustList[k] contains information about the replicated server of pid k |
(package private) universal.UniversalClientCrashStop |
uniClient
The object UniversalClientCrashStop this LeaderCrashStopClient is linked to |
Constructor Summary | |
LeaderCrashStopClient(universal.UniversalClientCrashStop uniClient)
|
Method Summary | |
void |
initialize(boolean recovering)
Create one object trustlist per replicated server. |
java.lang.String |
is_leader()
Returns first correct replicated server alive in the list. |
void |
omega()
Check if some replicated server shouldn't be trusted anymore because we don't have receive any AmAlive message from it since a period of length delta. |
void |
receivedAmAlive(universal.AmAliveMessage m)
Call when it receives an AmAliveMessage from one of the replicated servers. |
universal.communication.ReceiverClient |
receiverClient()
|
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public LeaderCrashStopClient.trustListElement[] trustList
universal.UniversalClientCrashStop uniClient
Constructor Detail |
public LeaderCrashStopClient(universal.UniversalClientCrashStop uniClient)
Method Detail |
public void initialize(boolean recovering)
public void run()
run
in interface java.lang.Runnable
public java.lang.String is_leader()
public void omega()
public void receivedAmAlive(universal.AmAliveMessage m)
public universal.communication.ReceiverClient receiverClient()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |