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()
Exemplo n.º 2
0
    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()
Exemplo n.º 3
0
 def getDbConnection(self):  # pragma: no cover
     return dbApi.PhashDbApi()
 def exposed_reloadTree(self):
     treeProx = dbPhashApi.PhashDbApi()
     treeProx.forceReload()