Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 def deleteMultiple(self, keys):
     ds = {}
     for key in keys:
         ds[key] = self.delete(key)
     return deferredDict(ds)
Esempio n. 6
0
 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)
Esempio n. 7
0
 def version(self):
     ds = {}
     for host, proto in iteritems(self._protocols):
         ds[host] = proto.version()
     return deferredDict(ds)
Esempio n. 8
0
 def stats(self, arg=None):
     ds = {}
     for host, proto in iteritems(self._protocols):
         ds[host] = proto.stats(arg)
     return deferredDict(ds)