Пример #1
0
 def __init__(self):
     self.preset_provider = MemcachedPresetProvider()
     preset_service.services[BEHAVIOUR] = self.preset_provider
     FarmSecurityMixin.__init__(self, [11211])
     self._logger = logging.getLogger(__name__)
     self._queryenv = bus.queryenv_service
     bus.on("init", self.on_init)
Пример #2
0
 def __init__(self):
     self.preset_provider = MemcachedPresetProvider()
     preset_service.services[BEHAVIOUR] = self.preset_provider
     ServiceCtlHandler.__init__(self, SERVICE_NAME, initdv2.lookup('memcached'), MemcachedCnfController())
     FarmSecurityMixin.__init__(self, [11211])
     self._logger = logging.getLogger(__name__)
     self._queryenv = bus.queryenv_service
     bus.on("init", self.on_init)
Пример #3
0
 def __init__(self):
     self.preset_provider = MemcachedPresetProvider()
     FarmSecurityMixin.__init__(self)
     self.init_farm_security([11211])
     ServiceCtlHandler.__init__(self, BEHAVIOUR, memcached_api.MemcachedInitScript())
     self._logger = logging.getLogger(__name__)
     self._queryenv = bus.queryenv_service
     bus.on("init", self.on_init)
Пример #4
0
	def __init__(self):
		ServiceCtlHandler.__init__(self, SERVICE_NAME, initdv2.lookup('memcached'), MemcachedCnfController())
		FarmSecurityMixin.__init__(self, [11211])
		self._logger = logging.getLogger(__name__)		
		self._queryenv = bus.queryenv_service
		bus.on("init", self.on_init)