def register_coordinator(self, name, url, user, priority, resources,
                             immediate, demand_ncpu):
        "save a coordinator's registration info"
        try:
            print >>sys.stderr, 'change_priority: %s (%s,%s): %f -> %f' \
                  % (name, user, url, self.coordinators[url].priority,
                     priority)
            self.coordinators[url].priority = priority
            self.coordinators[url].immediate = immediate
            self.coordinators[url].demand_ncpu = demand_ncpu
        except __HOLE__:
            print >>sys.stderr, 'register_coordinator: %s (%s,%s): %f' \
                  % (name, user, url, priority)
            self.coordinators[url] = CoordinatorInfo(name, url, user, priority,
                                                     resources, self.njob,
                                                     immediate, demand_ncpu)
            self.njob += 1 # INCREMENT COUNT OF JOBS WE'VE REGISTERED
        self.must_rebalance = True # FORCE REBALANCING ON NEXT OPPORTUNITY
        return True  # USE THIS AS DEFAULT XMLRPC RETURN VALUE
dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/ResourceController.register_coordinator