if line[0] == "stabilize": """ Block until there are enough Anti-Entropy messages for all values to propagate through the currently connected servers. In general, the time that this function blocks for should increase linearly with the number of servers in the system. """ api.stabilize() if line[0] == "printLog": serverId = int(line[1]) """ Print out a server's operation log in the format specified in the handout. """ api.printLog(serverId) if line[0] == "put": clientId = int(line[1]) songName = line[2] URL = line[3] """ Instruct the client specified to associate the given URL with the given songName. This command should block until the client communicates with one server. """ api.put(clientId, songName, URL) if line[0] == "get": clientId = int(line[1]) songName = line[2]