Esempio n. 1
0
 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())
Esempio n. 2
0
 def askNodeInformation(self, conn):
     self._notifyNodeInformation(conn)
     conn.answer(Packets.AnswerNodeInformation())