// definitions for server names
final String WINNER = "winner";
// Create my state
ServerState mySt = new ServerState();
ChangeNumber cn = new ChangeNumber(1L, 0, myId1);
mySt.update(cn);
cn = new ChangeNumber(2L, 0, myId2); // Should not be used inside algo
mySt.update(cn);
cn = new ChangeNumber(3L, 0, myId3); // Should not be used inside algo
mySt.update(cn);
// Create replication servers info list
HashMap<Integer, ReplicationServerInfo> rsInfos =
new HashMap<Integer, ReplicationServerInfo>();
// State for server 1
ServerState aState = new ServerState();
cn = new ChangeNumber(1L, 0, myId1);
aState.update(cn);
cn = new ChangeNumber(1L, 0, myId2);
aState.update(cn);
cn = new ChangeNumber(1L, 0, myId3);
aState.update(cn);
ReplServerStartMsg replServerStartMsg =
new ReplServerStartMsg(11, WINNER, null, 0, aState, (short)0, 0L,
false, (byte)1, 0);
rsInfos.put(11, ReplicationServerInfo.newInstance(replServerStartMsg));