Class OConsoleApplication
java.lang.Object
com.orientechnologies.common.console.OConsoleApplication
- Direct Known Subclasses:
OConsoleDatabaseApp
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected final StringBuilderprotected static final String[]protected PrintStreamprotected String[]protected String[]protected InputStreamprotected booleanstatic final Stringstatic final Stringprotected PrintStreamstatic final Stringprotected OConsoleReaderprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCommand(Map<String, Object> commandsTree, String commandLine) voidprotected OConsoleApplication.RESULTprotected booleanexecuteBatch(String commandLine) protected booleanexecuteCommands(OCommandStream commandStream, boolean iBatchMode) protected OConsoleApplication.RESULTexecuteServerCommand(String iCommand) protected StringformatCommandSpecs(String iCommand, Method m) static StringgetClearName(String iJavaName) protected StringgetCommandLine(String[] iArguments) Returns a map of all console method and the object they can be called on.protected intprotected Stringstatic Stringprotected Methodprotected StringgetOnlineHelp(String urlToRead) protected Stringintvoidprotected booleanisCollectingCommands(String iLine) protected booleanbooleanprotected static booleanisInteractiveMode(String[] args) protected booleanisPropertyEnabled(String iPropertyName) voidprotected voidonAfter()protected voidonBefore()protected voidonException(Throwable throwable) intrun()voidsetOutput(PrintStream iOut) voidsetReader(OConsoleReader iReader) protected voidsyntaxError(String iCommand, Method m)
-
Field Details
-
PARAM_DISABLE_HISTORY
- See Also:
-
ONLINE_HELP_URL
- See Also:
-
ONLINE_HELP_EXT
- See Also:
-
COMMENT_PREFIXS
-
commandBuffer
-
in
-
out
-
err
-
wordSeparator
-
helpCommands
-
exitCommands
-
properties
-
reader
-
interactiveMode
protected boolean interactiveMode -
args
-
methods
-
-
Constructor Details
-
OConsoleApplication
-
-
Method Details
-
getCorrectMethodName
-
getClearName
-
setReader
-
run
public int run() -
message
-
error
-
getVerboseLevel
public int getVerboseLevel() -
getConsoleWidth
protected int getConsoleWidth() -
isEchoEnabled
public boolean isEchoEnabled() -
isPropertyEnabled
-
getPrompt
-
getContext
-
isInteractiveMode
-
executeBatch
-
executeCommands
-
isComment
-
isCollectingCommands
-
execute
-
executeServerCommand
-
getMethod
-
syntaxError
-
formatCommandSpecs
-
getConsoleMethods
Returns a map of all console method and the object they can be called on.- Returns:
- Map<Method,Object>
-
addCommand
-
help
-
getCommandLine
-
onBefore
protected void onBefore() -
onAfter
protected void onAfter() -
onException
-
setOutput
-
getOnlineHelp
-