@Test public void testProcessJoinResult() { fail("Not yet implemented"); }
public void processJoinResult(ReconfigureReply r) { this.reconfigureTo(r.getView()); String[] s = r.getJoinSet(); this.lastJoinStet = new int[s.length]; for (int i = 0; i < s.length; i++) { StringTokenizer str = new StringTokenizer(s[i], ":"); int id = Integer.parseInt(str.nextToken()); this.lastJoinStet[i] = id; String host = str.nextToken(); int port = Integer.valueOf(str.nextToken()); this.getStaticConf().addHostInfo(id, host, port); } }
ServerViewController extends ViewController { public void processJoinResult(ReconfigureReply r) { this.reconfigureTo(r.getView()); String[] s = r.getJoinSet(); this.lastJoinStet = new int[s.length]; for (int i = 0; i < s.length; i++) { StringTokenizer str = new StringTokenizer(s[i], ":"); int id = Integer.parseInt(str.nextToken()); this.lastJoinStet[i] = id; String host = str.nextToken(); int port = Integer.valueOf(str.nextToken()); this.getStaticConf().addHostInfo(id, host, port); } } }
ServerViewController extends ViewController { public void processJoinResult(ReconfigureReply r) { this.reconfigureTo(r.getView()); String[] s = r.getJoinSet(); this.lastJoinStet = new int[s.length]; for (int i = 0; i < s.length; i++) { StringTokenizer str = new StringTokenizer(s[i], ":"); int id = Integer.parseInt(str.nextToken()); this.lastJoinStet[i] = id; String host = str.nextToken(); int port = Integer.valueOf(str.nextToken()); this.getStaticConf().addHostInfo(id, host, port); } } ServerViewController(int procId);  ServerViewController(int procId, String configHome); }
ServerViewController extends ViewController { public void processJoinResult(ReconfigureReply r) { this.reconfigureTo(r.getView()); String[] s = r.getJoinSet(); this.lastJoinStet = new int[s.length]; for (int i = 0; i < s.length; i++) { StringTokenizer str = new StringTokenizer(s[i], ":"); int id = Integer.parseInt(str.nextToken()); this.lastJoinStet[i] = id; String host = str.nextToken(); int port = Integer.valueOf(str.nextToken()); this.getStaticConf().addHostInfo(id, host, port); } } ServerViewController(int procId);  ServerViewController(int procId, String configHome); void setTomLayer(TOMLayer tomLayer); boolean isInCurrentView(); int[] getCurrentViewOtherAcceptors(); int[] getCurrentViewAcceptors(); boolean hasUpdates(); void enqueueUpdate(TOMMessage up); byte[] executeUpdates(int cid); TOMMessage[] clearUpdates(); boolean isInLastJoinSet(int id); void processJoinResult(ReconfigureReply r); @Override final void reconfigureTo(View newView); int getQuorum(); }
ServerViewController extends ViewController { public void processJoinResult(ReconfigureReply r) { this.reconfigureTo(r.getView()); String[] s = r.getJoinSet(); this.lastJoinStet = new int[s.length]; for (int i = 0; i < s.length; i++) { StringTokenizer str = new StringTokenizer(s[i], ":"); int id = Integer.parseInt(str.nextToken()); this.lastJoinStet[i] = id; String host = str.nextToken(); int port = Integer.valueOf(str.nextToken()); this.getStaticConf().addHostInfo(id, host, port); } } ServerViewController(int procId);  ServerViewController(int procId, String configHome); void setTomLayer(TOMLayer tomLayer); boolean isInCurrentView(); int[] getCurrentViewOtherAcceptors(); int[] getCurrentViewAcceptors(); boolean hasUpdates(); void enqueueUpdate(TOMMessage up); byte[] executeUpdates(int cid); TOMMessage[] clearUpdates(); boolean isInLastJoinSet(int id); void processJoinResult(ReconfigureReply r); @Override final void reconfigureTo(View newView); int getQuorum(); static final int ADD_SERVER; static final int REMOVE_SERVER; static final int CHANGE_F; }