Exemple #1
0
 def getThreadPools(self):
     tps = {}
     def getTpName(x): return x.split('(')[0]
     for name in map(getTpName, AdminConfig.list('ThreadPool', AdminConfig.getid(self.__was_cfg_path__))):
         tps[name] = self.getThreadPool(name)
         
     return tps
Exemple #2
0
    def getThreadPools(self):
        tps = {}

        def getTpName(x):
            return x.split('(')[0]

        for name in map(
                getTpName,
                AdminConfig.list('ThreadPool',
                                 AdminConfig.getid(self.__was_cfg_path__))):
            tps[name] = self.getThreadPool(name)

        return tps
Exemple #3
0
	def __getconfigid__(self):
		for p in AdminConfig.getid(self.__was_cfg_path__).splitlines():
			if self.name == p.split('(')[0]:
				return p
		return None
Exemple #4
0
 def __getconfigid__(self):
     return AdminConfig.getid(self.__was_cfg_path__)
Exemple #5
0
 def __getconfigid__(self):
     return AdminConfig.getid(
         self.__was_cfg_path__).splitlines()[self.index]
Exemple #6
0
 def __getconfigid__(self):
     for p in AdminConfig.getid(self.__was_cfg_path__).splitlines():
         if self.name == p.split('(')[0]:
             return p
     return None
Exemple #7
0
	def removeAll(self):
		for sibName in map(lambda x: x.split('(')[0], AdminConfig.getid('/SIBus:/').splitlines()):
			SIBus(sibName).remove()
Exemple #8
0
 def __getconfigid__(self):
     return AdminConfig.getid(self.__was_cfg_path__)
Exemple #9
0
 def __getconfigid__(self):
     return AdminConfig.getid(self.__was_cfg_type__,
                              self.parent.__getconfigid__()).splitlines()[0]
Exemple #10
0
	def __wasinit__(self):
		Resource.__wasinit__(self)
		if self.provider is None:
			self.provider = AdminConfig.getid(self.__was_cfg_parent__)