|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universal.Universal | +--universal.UniversalCrashStop
This subclass of Universal implements the crash stop model in the server side
Field Summary |
Fields inherited from class universal.Universal |
add, add1, cons, lead, pid, port, receiver, reg, replicasAnnounce, replicasNameFile, sender, serverSocket, t, totalDel, waiting |
Constructor Summary | |
UniversalCrashStop(int pid,
java.lang.String replicasNameFile)
Each replicated servers instantiate one object UniversalCrashStop. |
Method Summary | |
void |
initializeTasks()
Instantiate the object LeaderCrashStopserver (useful for the leader election) Instantiate the object Register (useful for the consensus) |
Methods inherited from class universal.Universal |
initializeUniversal, startTasks, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UniversalCrashStop(int pid, java.lang.String replicasNameFile)
pid
- the pid of the replicated server which instantiates it.replicasNameFile
- the name of the file which contains the list
of all the others replicated server and their pid.Method Detail |
public void initializeTasks()
initializeTasks
in class Universal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |