Package com.odiago.flumebase.util

Examples of com.odiago.flumebase.util.QuitException


      case 'h':
        printUsage();
        break;
      case 'q':
        // Graceful quit from the shell.
        throw new QuitException(0);
      default:
        System.err.println("Unknown control command: " + args[0]);
        System.err.println("Try \\h for help.");
        break;
      }
View Full Code Here


    String realCommand = trimTerminator(cmd);
   
    if (realCommand.equalsIgnoreCase("help")) {
      printUsage();
    } else if (realCommand.equalsIgnoreCase("exit")) {
      throw new QuitException(0);
    } else {
      QuerySubmitResponse response = mExecEnv.submitQuery(realCommand, getQuerySettings());
      String msg = response.getMessage();
      if (null != msg) {
        System.out.println(msg);
View Full Code Here

      while (true) {
        printPrompt();
        String line = conReader.readLine();
        if (null == line) {
          // EOF on input. We're done.
          throw new QuitException(0);
        } else if (line.endsWith("\\c")) {
          // Lines ending in '\\c' cancel the current input.
          resetCmdState();
          continue;
        }
View Full Code Here

TOP

Related Classes of com.odiago.flumebase.util.QuitException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.