1 24 25 package org.objectweb.dream.protocol.utobcast; 26 27 import org.objectweb.dream.protocol.Process; 28 29 32 public interface ProcessMembership 33 { 34 35 String ITF_NAME = "process-membership"; 36 37 44 Process getLeader() throws InterruptedException ; 45 46 51 void setLeader(Process leader); 52 53 60 Process getBackup() throws InterruptedException ; 61 62 67 void setBackup(Process backup); 68 69 76 Process getMyself() throws InterruptedException ; 77 78 83 void setMyself(Process myself); 84 85 91 Process [] getOtherProcesses(); 92 93 99 void setOtherProcesses(Process [] processes); 100 101 106 void addProcess(Process process); 107 108 113 void removeProcess(Process process); 114 115 123 Process electBackup() throws InterruptedException ; 124 125 132 Process electBackupAsLeader(Process oldLeader); 133 134 } | Popular Tags |