Package com.orientechnologies.common.console

Examples of com.orientechnologies.common.console.OConsoleReader


      System.out.println("| Please type a password of your choice for the      |");
      System.out.println("| 'root' user or leave it blank to auto-generate it. |");
      System.out.println("+----------------------------------------------------+");
      System.out.print("\nRoot password [BLANK=auto generate it]: ");

      OConsoleReader reader = new DefaultConsoleReader();
      rootPassword = reader.readLine();
      if (rootPassword != null) {
        rootPassword = rootPassword.trim();
        if (rootPassword.isEmpty())
          rootPassword = null;
      }
View Full Code Here


      System.out.println("| as distributed. Please type the name you want      |");
      System.out.println("| to assign to the current server node.              |");
      System.out.println("+----------------------------------------------------+");
      System.out.print("\nNode name [BLANK=auto generate it]: ");

      OConsoleReader reader = new DefaultConsoleReader();
      try {
        nodeName = reader.readLine();
      } catch (IOException e) {
      }
      if (nodeName != null) {
        nodeName = nodeName.trim();
        if (nodeName.isEmpty())
View Full Code Here

TOP

Related Classes of com.orientechnologies.common.console.OConsoleReader

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.