本文整理匯總了Python中agent.controllers.service.ServiceController.serviceCat方法的典型用法代碼示例。如果您正苦於以下問題:Python ServiceController.serviceCat方法的具體用法?Python ServiceController.serviceCat怎麽用?Python ServiceController.serviceCat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類agent.controllers.service.ServiceController
的用法示例。
在下文中一共展示了ServiceController.serviceCat方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from agent.controllers.service import ServiceController [as 別名]
# 或者: from agent.controllers.service.ServiceController import serviceCat [as 別名]
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
示例2: __init__
# 需要導入模塊: from agent.controllers.service import ServiceController [as 別名]
# 或者: from agent.controllers.service.ServiceController import serviceCat [as 別名]
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
示例3: stopServiceThread
# 需要導入模塊: from agent.controllers.service import ServiceController [as 別名]
# 或者: from agent.controllers.service.ServiceController import serviceCat [as 別名]
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()
示例4: createTestThread
# 需要導入模塊: from agent.controllers.service import ServiceController [as 別名]
# 或者: from agent.controllers.service.ServiceController import serviceCat [as 別名]
def createTestThread(serviceName):
appGlobal = config['pylons.app_globals']
testTh = WaitThread(appGlobal.threadMgr, ServiceController.serviceCat(serviceName))
testTh.start()
return testTh