def version(self): ds = {} for factory in self.factories: if not factory.client is None: hp = "%s:%i" % (factory.addr.host, factory.addr.port) ds[hp] = factory.client.version() log.msg("Getting version on %i hosts" % len(ds)) return deferredDict(ds)
def stats(self, arg=None): ds = {} for factory in self.factories: if not factory.client is None: hp = "%s:%i" % (factory.addr.host, factory.addr.port) ds[hp] = factory.client.stats(arg) log.msg("Getting stats on %i hosts" % len(ds)) return deferredDict(ds)
def deleteMultiple(self, keys): ds = {} for key in keys: ds[key] = self.delete(key) return deferredDict(ds)
def setMultiple(self, items, flags=0, expireTime=0): ds = {} for key, value in iteritems(items): ds[key] = self.set(key, value, flags, expireTime) return deferredDict(ds)
def version(self): ds = {} for host, proto in iteritems(self._protocols): ds[host] = proto.version() return deferredDict(ds)
def stats(self, arg=None): ds = {} for host, proto in iteritems(self._protocols): ds[host] = proto.stats(arg) return deferredDict(ds)