def dispatch(self, tokens):

        command = tokens[0]
        index = 1
        if command not in CommandList:
            msg = "ParseError: Building {0}. Unknown command {1}, index = {2} tokens = {3}".format(
                     command, command, index, tokens)
            raise excepting.ParseError(msg, tokens, index)

        commandMethod = 'build' + command.capitalize()
        if hasattr(self, commandMethod):
            return(getattr(self, commandMethod )(command, tokens, index))
        else:
            return self.buildGeneric(command, tokens, index)
Read an individual response from nsqd.
dataset/ETHPy150Open ioflo/ioflo/ioflo/base/building.py/Builder.dispatch--crossover with--dataset/ETHPy150Open wtolson/gnsq/gnsq/nsqd.py/Nsqd.read_response