Beispiel #1
0
        if line[0] ==  "restoreConnection":
            id1 = int(line[1])
            id2 = int(line[2])
            """
            Restore the connection between a client and a server or between
            two servers
            """
            api.restoreConnection(id1, id2)

        if line[0] ==  "pause":
            """
            Pause the system and don't allow any Anti-Entropy messages to
            propagate through the system
            """
            api.pause()

        if line[0] ==  "start":
            """
            Resume the system and allow any Anti-Entropy messages to
            propagate through the system
            """
            api.start()

        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.
            """