def main(): scanner.logSetup.initLogging() print("Preloading cache directories") tree = dbPhashApi.PhashDbApi() # print("Testing reload") # server.tree.tree.reloadTree() # print("Starting RPC server") run_server()
def setUp(self): # We set up and tear down the tree a few times to validate the dropTree function self.log = logging.getLogger("Main.TestCompareDatabaseInterface") self.tree = dbPhashApi.PhashDbApi() self.tree.forceReload()
def getDbConnection(self): # pragma: no cover return dbApi.PhashDbApi()
def exposed_reloadTree(self): treeProx = dbPhashApi.PhashDbApi() treeProx.forceReload()