def askNodeInformation(self, conn): # send informations about master and storages only nm = self.app.nm node_list = [] node_list.extend(n.asTuple() for n in nm.getMasterList()) node_list.extend(n.asTuple() for n in nm.getStorageList()) conn.notify(Packets.NotifyNodeInformation(node_list)) conn.answer(Packets.AnswerNodeInformation())
def askNodeInformation(self, conn): self._notifyNodeInformation(conn) conn.answer(Packets.AnswerNodeInformation())