def METHOD_NAME(self, command):
    if command == "kill":
        self._logger.info("Kill command received, shutting down.")
        self.clean()
        sys.exit()
    elif command == "reload":
        self._logger.info("Reload command received, reloading settings from file.")
        self._setup()
        self._setup_zmq()
    elif command == "status":
        self._logger.info("Status command received, responding with latest stats.")
        self.r.delete("{}:status".format(self.namespace))
        self.r.lpush("{}:status".format(self.namespace),
                     json.dumps({"timestamp": time.time(),
                                 "timestampSettings": self.timestamp_settings,
                                 "publishCount": self.publish_count,
                                 "messageCount": self.message_count}))
    else:
        self._logger.warning("Received invalid command '{}'.".format(command))