Exemplo n.º 1
0
 def _create_client(self):
     return bsonrpc.BsonRpcClient(self.addr,
                                  self.timeout,
                                  self.user,
                                  self.password,
                                  keyfile=self.keyfile,
                                  certfile=self.certfile)
Exemplo n.º 2
0
 def __init__(self, addr, timeout, user=None, password=None,
              keyfile=None, certfile=None):
   self.addr = addr
   self.timeout = timeout
   self.client = bsonrpc.BsonRpcClient(addr, timeout, user, password,
                                       keyfile=keyfile, certfile=certfile)
   self.connected = False
Exemplo n.º 3
0
 def __init__(self,
              addr,
              timeout,
              user=None,
              password=None,
              encrypted=False,
              keyfile=None,
              certfile=None):
     self.client = bsonrpc.BsonRpcClient(addr, timeout, user, password,
                                         encrypted, keyfile, certfile)
Exemplo n.º 4
0
 def __init__(self,
              addr,
              timeout,
              user=None,
              password=None,
              keyfile=None,
              certfile=None):
     self.addr = addr
     self.timeout = timeout
     self.client = bsonrpc.BsonRpcClient(addr,
                                         timeout,
                                         user,
                                         password,
                                         keyfile=keyfile,
                                         certfile=certfile)
     self.logger_object = vtdb_logger.get_logger()
Exemplo n.º 5
0
 def __init__(self,
              addr,
              keyspace,
              shard,
              timeout,
              user=None,
              password=None,
              encrypted=False,
              keyfile=None,
              certfile=None):
     self.addr = addr
     self.keyspace = keyspace
     self.shard = shard
     self.timeout = timeout
     self.client = bsonrpc.BsonRpcClient(addr,
                                         timeout,
                                         user,
                                         password,
                                         encrypted=encrypted,
                                         keyfile=keyfile,
                                         certfile=certfile)
Exemplo n.º 6
0
 def __init__(self,
              addr,
              tablet_type,
              keyspace,
              shard,
              timeout,
              user=None,
              password=None,
              encrypted=False,
              keyfile=None,
              certfile=None):
     self.addr = addr
     self.tablet_type = tablet_type
     self.keyspace = keyspace
     self.shard = shard
     self.timeout = timeout
     self.client = bsonrpc.BsonRpcClient(addr,
                                         timeout,
                                         user,
                                         password,
                                         encrypted=encrypted,
                                         keyfile=keyfile,
                                         certfile=certfile)
     self.logger_object = vtdb_logger.get_logger()
Exemplo n.º 7
0
 def __init__(self, addr, timeout, user=None, password=None):
     self.client = bsonrpc.BsonRpcClient(addr, timeout, user, password)
Exemplo n.º 8
0
 def _create_client(self):
   # TODO: Merge. This is very similar to vtgatev2.
   return bsonrpc.BsonRpcClient(
       self.addr, self.timeout, self.user, self.password,
       keyfile=self.keyfile, certfile=self.certfile)