コード例 #1
0
 private short getLeader() {
   return (short) (preparedFor % serverSet.getNumServers());
 }
コード例 #2
0
 private void sendAllMessage(PaxosMessage message) {
   for (short i = 0; i < serverSet.getNumServers(); i++) {
     sendMessage(message, i);
   }
 }