def METHOD_NAME(self, worker):
    host_name = worker.host_name
    print("Added new worker for \"{}\"".format(host_name))
    self._workers_by_id[worker.id] = worker
    self._workers_by_host_name[host_name].append(worker)