示例#1
0
 def updatemaster(self, node, add=True):
     if self.debug: self.logger.write("State", "Updating Master at %s" % self.master)
     nscoord = NameserverCoord(self.master)
     nodes = {}
     for nodetype,group in self.groups.iteritems():
         nodes[nodetype] = set()
         for address,port in self.groups[nodetype].get_addresses():
             nodes[nodetype].add(address + ':' + str(port))
     nodes[self.type].add(self.addr + ':' + str(self.port))
     nscoord.updatesubdomain(str(self.mydomain), nodes)
示例#2
0
 def updatemaster(self, node, add=True):
     if self.debug:
         self.logger.write("State", "Updating Master at %s" % self.master)
     nscoord = NameserverCoord(self.master)
     nodes = {}
     for nodetype, group in self.groups.iteritems():
         nodes[nodetype] = set()
         for address, port in self.groups[nodetype].get_addresses():
             nodes[nodetype].add(address + ':' + str(port))
     nodes[self.type].add(self.addr + ':' + str(self.port))
     nscoord.updatesubdomain(str(self.mydomain), nodes)
示例#3
0
def main():
    openreplicacoord = NameserverCoord('openreplica.org')
    print(openreplicacoord.__str__())
示例#4
0
def main():
    openreplicacoord = NameserverCoord('openreplica.org')
    print openreplicacoord.__str__()