def get_slave_info_list(self):
     results = []
     for slave in self.SLAVE_LIST:
         ip = int(ipaddress.ip_address(slave.IP))
         results.append(
             SlaveInfo(slave.ID, ip, slave.PORT, slave.SHARD_MASK_LIST))
     return results
 def get_slave_info_list(self):
     results = []
     for slave in self.SLAVE_LIST:
         results.append(
             SlaveInfo(slave.ID, slave.HOST, slave.PORT,
                       slave.FULL_SHARD_ID_LIST))
     return results
Beispiel #3
0
 def get_slave_info_list(self):
     results = []
     for slave in self.SLAVE_LIST:
         results.append(
             SlaveInfo(slave.ID, slave.HOST, slave.PORT,
                       slave.CHAIN_MASK_LIST))
     return results