universal.leader
Class Leader

java.lang.Object
  |
  +--universal.leader.Leader
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
LeaderCrashStopServer

public abstract class Leader
extends java.lang.Object
implements java.lang.Runnable


Field Summary
 universal.Universal uni
           
 
Constructor Summary
Leader(universal.Universal uni)
           
 
Method Summary
abstract  int is_leader()
          Returns first alive replicated server in the list.
abstract  void omega()
          Send periodically AmAliveMessage to the client and to all the replicated servers
abstract  void receivedAmAlive(universal.AmAliveMessage m)
          Update if a replicated server is alive each time it recieves an AmaliveMessage from it
 void run()
           
 universal.communication.Sender sender()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uni

public universal.Universal uni
Constructor Detail

Leader

public Leader(universal.Universal uni)
Method Detail

is_leader

public abstract int is_leader()
Returns first alive replicated server in the list. Implemented in subclasses.


omega

public abstract void omega()
Send periodically AmAliveMessage to the client and to all the replicated servers


receivedAmAlive

public abstract void receivedAmAlive(universal.AmAliveMessage m)
Update if a replicated server is alive each time it recieves an AmaliveMessage from it


run

public void run()
Specified by:
run in interface java.lang.Runnable

sender

public universal.communication.Sender sender()