예제 #1
0
파일: client.py 프로젝트: ctavan/txyam
 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)
예제 #2
0
파일: client.py 프로젝트: bmuller/txyam
 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)
예제 #3
0
파일: client.py 프로젝트: ctavan/txyam
 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)
예제 #4
0
파일: client.py 프로젝트: bmuller/txyam
 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)
예제 #5
0
파일: client.py 프로젝트: Weasyl/txyam2
 def deleteMultiple(self, keys):
     ds = {}
     for key in keys:
         ds[key] = self.delete(key)
     return deferredDict(ds)
예제 #6
0
파일: client.py 프로젝트: Weasyl/txyam2
 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)
예제 #7
0
파일: client.py 프로젝트: Weasyl/txyam2
 def version(self):
     ds = {}
     for host, proto in iteritems(self._protocols):
         ds[host] = proto.version()
     return deferredDict(ds)
예제 #8
0
파일: client.py 프로젝트: Weasyl/txyam2
 def stats(self, arg=None):
     ds = {}
     for host, proto in iteritems(self._protocols):
         ds[host] = proto.stats(arg)
     return deferredDict(ds)