コード例 #1
0
 def _create_client(self):
     return bsonrpc.BsonRpcClient(self.addr,
                                  self.timeout,
                                  self.user,
                                  self.password,
                                  keyfile=self.keyfile,
                                  certfile=self.certfile)
コード例 #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
コード例 #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)
コード例 #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()
コード例 #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)
コード例 #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()
コード例 #7
0
 def __init__(self, addr, timeout, user=None, password=None):
     self.client = bsonrpc.BsonRpcClient(addr, timeout, user, password)
コード例 #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)