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