Пример #1
0
def _getConnection():
    url = random.choice(DEFAULT_URLS)
    return scalaris.JSONConnection(url = url)
Пример #2
0
 def testTransactionSingleOp2(self):
     conn = TransactionSingleOp(conn=scalaris.JSONConnection(
         url=scalaris.DEFAULT_URL))
     conn.close_connection()
Пример #3
0
 def testReplicatedDHT2(self):
     rdht = ReplicatedDHT(conn=scalaris.JSONConnection(
         url=scalaris.DEFAULT_URL))
     rdht.close_connection()
Пример #4
0
 def testScalarisVM2(self):
     rdht = ScalarisVM(conn=scalaris.JSONConnection(
         url=scalaris.DEFAULT_URL))
     rdht.close_connection()
Пример #5
0
 def testTransaction3(self):
     t = Transaction(conn=scalaris.JSONConnection(url=scalaris.DEFAULT_URL))
     t.close_connection()