Class OConsoleApplication

java.lang.Object
com.orientechnologies.common.console.OConsoleApplication
Direct Known Subclasses:
OConsoleDatabaseApp

public class OConsoleApplication extends Object
  • Field Details

  • Constructor Details

    • OConsoleApplication

      public OConsoleApplication(String[] iArgs)
  • Method Details

    • getCorrectMethodName

      public static String getCorrectMethodName(Method m)
    • getClearName

      public static String getClearName(String iJavaName)
    • setReader

      public void setReader(OConsoleReader iReader)
    • run

      public int run()
    • message

      public void message(String iMessage, Object... iArgs)
    • error

      public void error(String iMessage, Object... iArgs)
    • getVerboseLevel

      public int getVerboseLevel()
    • getConsoleWidth

      protected int getConsoleWidth()
    • isEchoEnabled

      public boolean isEchoEnabled()
    • isPropertyEnabled

      protected boolean isPropertyEnabled(String iPropertyName)
    • getPrompt

      protected String getPrompt()
    • getContext

      protected String getContext()
    • isInteractiveMode

      protected static boolean isInteractiveMode(String[] args)
    • executeBatch

      protected boolean executeBatch(String commandLine)
    • executeCommands

      protected boolean executeCommands(OCommandStream commandStream, boolean iBatchMode)
    • isComment

      protected boolean isComment(String commandLine)
    • isCollectingCommands

      protected boolean isCollectingCommands(String iLine)
    • execute

      protected OConsoleApplication.RESULT execute(String iCommand)
    • executeServerCommand

      protected OConsoleApplication.RESULT executeServerCommand(String iCommand)
    • getMethod

      protected Method getMethod(String iCommand)
    • syntaxError

      protected void syntaxError(String iCommand, Method m)
    • formatCommandSpecs

      protected String formatCommandSpecs(String iCommand, Method m)
    • getConsoleMethods

      protected Map<Method,Object> getConsoleMethods()
      Returns a map of all console method and the object they can be called on.
      Returns:
      Map<Method,Object>
    • addCommand

      protected Map<String,Object> addCommand(Map<String,Object> commandsTree, String commandLine)
    • help

      public void help(String iCommand)
    • getCommandLine

      protected String getCommandLine(String[] iArguments)
    • onBefore

      protected void onBefore()
    • onAfter

      protected void onAfter()
    • onException

      protected void onException(Throwable throwable)
    • setOutput

      public void setOutput(PrintStream iOut)
    • getOnlineHelp

      protected String getOnlineHelp(String urlToRead)