public class ConsoleCommandShell extends Object implements org.lsst.ccs.services.AgentCommandDictionaryService.AgentCommandDictionaryListener
Static methods of this class can be used to either run the shell standalone or construct JLineShell for embedding into the graphical console.
| Modifier and Type | Class and Description |
|---|---|
class |
ConsoleCommandShell.BusMasterCommands
This must be public for the command invocation to work
|
static class |
ConsoleCommandShell.ConsoleParameters |
static class |
ConsoleCommandShell.Visibility |
| Modifier and Type | Method and Description |
|---|---|
void |
commandDictionaryUpdate(org.lsst.ccs.services.AgentCommandDictionaryService.AgentCommandDictionaryEvent evt) |
static ConsoleCommandShell |
createConsoleCommandShell(org.lsst.ccs.Agent agent)
Create a ConsoleCommandShell.
|
static org.lsst.ccs.shell.JLineShell |
createJLineShell(org.lsst.ccs.Agent agent,
jline.console.ConsoleReader reader)
Creates a command shell for embedding into external GUI.
|
org.lsst.ccs.command.RouteSelectionCommandSet |
getConsoleCommandSet() |
static void |
main(String[] argv)
Runs shell command console in standalone mode as a CCS subsystem named "console".
|
public org.lsst.ccs.command.RouteSelectionCommandSet getConsoleCommandSet()
public void commandDictionaryUpdate(org.lsst.ccs.services.AgentCommandDictionaryService.AgentCommandDictionaryEvent evt)
commandDictionaryUpdate in interface org.lsst.ccs.services.AgentCommandDictionaryService.AgentCommandDictionaryListenerpublic static org.lsst.ccs.shell.JLineShell createJLineShell(org.lsst.ccs.Agent agent,
jline.console.ConsoleReader reader)
throws IOException
agent - The agent in which the Shell is to operate.reader - JLine console reader to be used for input and output.IOException - if the shell fails to initialize.public static ConsoleCommandShell createConsoleCommandShell(org.lsst.ccs.Agent agent)
Copyright © 2021 LSST. All rights reserved.