Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_PROCESS |
static org.slf4j.Logger |
log |
static String |
ROOT_PROCESSES |
commandFactory, LOGIN_CONTEXT, runningJobs
SUBSYSTEM_CALLBACK, SUBSYSTEM_FILESYSTEM, SUBSYSTEM_HELP, SUBSYSTEM_JVM, SUBSYSTEM_POLICY, SUBSYSTEM_SHELL, SUBSYSTEM_SSHD, SUBSYSTEM_SYSTEM, SUBSYSTEM_TEXT_EDITING
exitCode, process
STILL_ACTIVE
Constructor and Description |
---|
RootShell(CommandFactory<ShellCommand> commandFactory,
Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
execCommand(DynamicBuffer input,
TerminalOutput term,
String cmd,
SessionChannel session) |
void |
exit() |
Connection |
getConnection() |
VirtualProcess |
getProcess() |
protected void |
promptForCommands(org.apache.commons.cli.CommandLine args,
VirtualProcess process) |
void |
run(org.apache.commons.cli.CommandLine args,
VirtualProcess process) |
protected void |
runAndExit(List<CmdLine> commands,
org.apache.commons.cli.CommandLine args,
VirtualProcess process) |
protected void |
setKeyBindings(InputStream keyBindings) |
void |
start() |
boolean |
startShell(DynamicBuffer input,
TerminalOutput term,
SessionChannel session) |
doSpawn, expandEnvironmentVariables, getCommandFactory, getLastError, parseArgs, parseLine, runShell, setCommandFactory, source, source, spawn
complete, getCollection, getCommandName, getDescription, getExitCode, getName, getOptions, getSignature, getSubsystem, hasFixedOptions, init, isBuiltIn, isHidden, setBuiltIn, setDescription, setName, setSignature, setSubsystem
public static final String ATTRIBUTE_PROCESS
public static final org.slf4j.Logger log
public static final String ROOT_PROCESSES
public RootShell(CommandFactory<ShellCommand> commandFactory, Connection con) throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
public Connection getConnection()
public void run(org.apache.commons.cli.CommandLine args, VirtualProcess process) throws IOException, PermissionDeniedException
run
in interface Command
run
in class Msh
IOException
PermissionDeniedException
protected void promptForCommands(org.apache.commons.cli.CommandLine args, VirtualProcess process) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
protected void runAndExit(List<CmdLine> commands, org.apache.commons.cli.CommandLine args, VirtualProcess process) throws IOException
IOException
public boolean startShell(DynamicBuffer input, TerminalOutput term, SessionChannel session) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
protected void setKeyBindings(InputStream keyBindings) throws IOException
IOException
public void execCommand(DynamicBuffer input, TerminalOutput term, String cmd, SessionChannel session) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public VirtualProcess getProcess()
getProcess
in class AbstractCommand
public void start()
Copyright © 2024. All rights reserved.