public class ConsoleCommandShell extends Object implements org.lsst.ccs.messaging.AgentPresenceListener, org.lsst.ccs.services.AgentLockService.AgentLevelListener, org.lsst.ccs.services.AgentLockService.AgentLockUpdateListener
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 |
| Modifier and Type | Method and Description |
|---|---|
void |
connecting(org.lsst.ccs.bus.data.AgentInfo agent) |
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.
|
void |
disconnecting(org.lsst.ccs.bus.data.AgentInfo agent) |
org.lsst.ccs.command.RouteSelectionCommandSet |
getConsoleCommandSet() |
static void |
main(String[] argv)
Runs shell command console in standalone mode as a CCS subsystem named "console".
|
void |
onAgentLevelChange(String agentName,
int level) |
void |
onAgentLockUpdate(String agentName,
org.lsst.ccs.bus.data.AgentLock lock) |
public org.lsst.ccs.command.RouteSelectionCommandSet getConsoleCommandSet()
public void connecting(org.lsst.ccs.bus.data.AgentInfo agent)
connecting in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void disconnecting(org.lsst.ccs.bus.data.AgentInfo agent)
disconnecting in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void onAgentLevelChange(String agentName, int level)
onAgentLevelChange in interface org.lsst.ccs.services.AgentLockService.AgentLevelListenerpublic void onAgentLockUpdate(String agentName, org.lsst.ccs.bus.data.AgentLock lock)
onAgentLockUpdate in interface org.lsst.ccs.services.AgentLockService.AgentLockUpdateListenerpublic 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 © 2018 LSST. All rights reserved.