def __init__(self, threadMgr, service, manifest): """ Constructor """ from agent.controllers.service import ServiceController AgentThread.__init__(self, threadMgr, cat = [ServiceController.serviceCat(service)], name = 'delete_manifest') self.service = service self.manifest = manifest
def __init__(self, threadMgr, service, manifest, packages, attemptDownload = True, forcePackages = None, skipProp = True): """ Constructor """ DownloadHelper.__init__(self, threadMgr, cat = [ServiceController.serviceCat(service)], name = 'create_manifest') self.__manifest = manifest self.__service = service self.__packages = packages self.__attemptDownload = attemptDownload self.__forcePackages = forcePackages self.__skipProp = skipProp
def stopServiceThread(self): """ stop all service threads """ from agent.controllers.service import ServiceController LOG.info("Stopping service thread") with self.__lock: services = ServiceController.getServices() for service in services: threads = self.getThreadByCat(ServiceController.serviceCat(service), fastbreak = False) for thread in threads: thread.stop()
def __init__(self, threadMgr, service, manifest): """ Constructor """ from agent.controllers.service import ServiceController AgentThread.__init__(self, threadMgr, cat=[ServiceController.serviceCat(service)], name='delete_manifest') self.service = service self.manifest = manifest
def stopServiceThread(self): """ stop all service threads """ from agent.controllers.service import ServiceController LOG.info("Stopping service thread") with self.__lock: services = ServiceController.getServices() for service in services: threads = self.getThreadByCat(ServiceController.serviceCat(service), fastbreak=False) for thread in threads: thread.stop()
def createTestThread(serviceName): appGlobal = config['pylons.app_globals'] testTh = WaitThread(appGlobal.threadMgr, ServiceController.serviceCat(serviceName)) testTh.start() return testTh
def createTestThread(serviceName): appGlobal = config['pylons.app_globals'] testTh = WaitThread(appGlobal.threadMgr, ServiceController.serviceCat(serviceName)) testTh.start() return testTh