| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_PROCESS |
static org.slf4j.Logger |
log |
static String |
ROOT_PROCESSES |
commandFactory, LOGIN_CONTEXT, runningJobsSUBSYSTEM_CALLBACK, SUBSYSTEM_FILESYSTEM, SUBSYSTEM_HELP, SUBSYSTEM_JVM, SUBSYSTEM_POLICY, SUBSYSTEM_SHELL, SUBSYSTEM_SSHD, SUBSYSTEM_SYSTEM, SUBSYSTEM_TEXT_EDITINGexitCode, processSTILL_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, spawncomplete, getCollection, getCommandName, getDescription, getExitCode, getName, getOptions, getSignature, getSubsystem, hasFixedOptions, init, isBuiltIn, isHidden, setBuiltIn, setDescription, setName, setSignature, setSubsystempublic 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
PermissionDeniedExceptionIOExceptionpublic Connection getConnection()
public void run(org.apache.commons.cli.CommandLine args,
VirtualProcess process)
throws IOException,
PermissionDeniedException
run in interface Commandrun in class MshIOExceptionPermissionDeniedExceptionprotected void promptForCommands(org.apache.commons.cli.CommandLine args,
VirtualProcess process)
throws IOException,
PermissionDeniedException
IOExceptionPermissionDeniedExceptionprotected void runAndExit(List<CmdLine> commands, org.apache.commons.cli.CommandLine args, VirtualProcess process) throws IOException
IOExceptionpublic boolean startShell(DynamicBuffer input, TerminalOutput term, SessionChannel session) throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionprotected void setKeyBindings(InputStream keyBindings) throws IOException
IOExceptionpublic void execCommand(DynamicBuffer input, TerminalOutput term, String cmd, SessionChannel session) throws IOException, PermissionDeniedException
IOExceptionPermissionDeniedExceptionpublic VirtualProcess getProcess()
getProcess in class AbstractCommandpublic void start()
Copyright © 2025. All rights reserved.