def run(self): RDthread = None EDthread = None if(self.do_revocation_detection): RDthread = RevocationDetector(self.dbname, self.dbuser, self.dbhost) RDthread.start() if(self.do_expiration_detection): EDthread = ExpirationDetector(self.dbname, self.dbuser, self.dbhost) EDthread.start() if(self.do_revocation_detection): RDthread.join() if(self.do_expiration_detection): EDthread.join() if(self.do_metadata): MDthread = Metadata(self.dbname, self.dbuser, self.dbhost) MDthread.start() MDthread.join()