@Named
public final class Console
extends java.lang.Object
Console is the shell-like interface for managing the cluster and AgE nodes.
A command is a class that implements the Command
interface and is annotated using the Named
annotations. Such commands are automatically recognized and made available for the user.
Modifier and Type | Field and Description |
---|---|
private org.springframework.context.ApplicationContext |
applicationContext |
private static java.lang.String |
BASE_SCRIPT |
private static org.slf4j.Logger |
logger |
private static java.lang.String |
PROMPT |
private org.jline.terminal.Terminal |
terminal |
private java.io.PrintWriter |
writer |
Constructor and Description |
---|
Console(org.springframework.context.ApplicationContext applicationContext,
org.jline.terminal.Terminal terminal) |
Modifier and Type | Method and Description |
---|---|
private void |
batch(javax.script.ScriptEngine engine,
java.lang.String... args) |
private void |
closeTerminal() |
private void |
interactive(javax.script.ScriptEngine engine) |
(package private) void |
mainLoop(java.lang.String... args) |
private static final org.slf4j.Logger logger
private static final java.lang.String BASE_SCRIPT
private static final java.lang.String PROMPT
private final org.springframework.context.ApplicationContext applicationContext
private final org.jline.terminal.Terminal terminal
private final java.io.PrintWriter writer