public class Msh extends AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
exitCodeSTILL_ACTIVE, SUBSYSTEM_CALLBACK, SUBSYSTEM_FILESYSTEM, SUBSYSTEM_HELP, SUBSYSTEM_JVM, SUBSYSTEM_POLICY, SUBSYSTEM_SHELL, SUBSYSTEM_SSHD, SUBSYSTEM_SYSTEM, SUBSYSTEM_TEXT_EDITING| Constructor and Description |
|---|
Msh() |
Msh(String name,
String subsystem) |
Msh(String name,
String subsystem,
String signature) |
Msh(String name,
String subsystem,
String signature,
org.apache.commons.cli.Option... options) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
doSpawn(Console term,
VirtualProcess process,
String[] args) |
void |
exit() |
Throwable |
getLastError() |
protected void |
parseArgs(VirtualProcess process,
List<String> lineArgs) |
protected void |
parseLine(VirtualProcess process,
String line) |
void |
run(org.apache.commons.cli.CommandLine cli,
VirtualProcess process) |
protected void |
source(VirtualProcess process,
AbstractFile file) |
protected void |
source(VirtualProcess process,
InputStream in) |
protected int |
spawn(Console term,
VirtualProcess process,
String[] args) |
complete, getCollection, getCommandName, getDescription, getExitCode, getName, getOptions, getSignature, getSubsystem, isBuiltIn, setBuiltIn, setDescription, setName, setSignature, setSubsystempublic Msh()
public Msh(String name, String subsystem, String signature, org.apache.commons.cli.Option... options)
public void run(org.apache.commons.cli.CommandLine cli,
VirtualProcess process)
throws IOException,
PermissionDeniedException
IOExceptionPermissionDeniedExceptionprotected void source(VirtualProcess process, AbstractFile file) throws IOException
IOExceptionprotected void source(VirtualProcess process, InputStream in) throws IOException
IOExceptionprotected void parseArgs(VirtualProcess process, List<String> lineArgs) throws IOException
IOExceptionprotected void parseLine(VirtualProcess process, String line) throws IOException
IOExceptionprotected int spawn(Console term, VirtualProcess process, String[] args) throws IOException
IOExceptionprotected int doSpawn(Console term, VirtualProcess process, String[] args) throws UnsupportedCommandException, IllegalAccessException, InstantiationException, org.apache.commons.cli.ParseException, IOException, PermissionDeniedException
UnsupportedCommandExceptionIllegalAccessExceptionInstantiationExceptionorg.apache.commons.cli.ParseExceptionIOExceptionPermissionDeniedExceptionpublic Throwable getLastError()
public void exit()
Copyright © 2012. All Rights Reserved.