예제 #1
0
 def __init__(self,host,ip):
     Node.__init__(self,host,ip)
     self.data = {}
     self.addNewFunc(self.put,"put")
     self.addNewFunc(self.get,"get")
예제 #2
0
 def __init__(self,ip,port):
     Node.__init__(self,ip,port)
     self.data = {}
     self.addnewFunc(self.distribute,"distribute")
     self.addnewFunc(self.collate,"collate")
     self.data = []