def HandleState(self):
    if not self.MASTER:
      self._EmptyResponse(constants.RESPONSE_NOT_MASTER_SERVER)
      return
    if not self.data_server:
      logging.error("Server %s attempting to update its state but "
                    "is not registered yet", self.client_address)
      self._EmptyResponse(constants.RESPONSE_SERVER_NOT_REGISTERED)
      return
    state = rdf_data_server.DataServerState(self.post_data)
    self.data_server.UpdateState(state)
    logging.info("Received new state from server %s", self.client_address)
    # Response with our mapping.
    body = self.MAPPING.SerializeToString()
    self._Response(constants.RESPONSE_OK, body)
add annotation.
dataset/ETHPy150Open google/grr/grr/server/data_server/data_server.py/DataServerHandler.HandleState--crossover with--dataset/ETHPy150Open CGATOxford/cgat/CGAT/Mali.py/Mali.addAnnotation