com.maverick.sshd.shell
Class Msh
java.lang.Object
com.maverick.sshd.shell.AbstractCommand
com.maverick.sshd.shell.Msh
- All Implemented Interfaces:
- ShellCommand, Completor
- Direct Known Subclasses:
- RootShell, Source
public class Msh
- extends AbstractCommand
|
Field Summary |
static org.apache.commons.logging.Log |
log
|
| Methods inherited from class com.maverick.sshd.shell.AbstractCommand |
complete, getCollection, getCommandName, getDescription, getExitCode, getName, getOptions, getSignature, getSubsystem, isBuiltIn, setBuiltIn, setDescription, setName, setSignature, setSubsystem |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.commons.logging.Log log
Msh
public Msh()
Msh
public Msh(String name,
String subsystem,
String signature,
org.apache.commons.cli.Option... options)
Msh
public Msh(String name,
String subsystem,
String signature)
Msh
public Msh(String name,
String subsystem)
run
public void run(org.apache.commons.cli.CommandLine cli,
VirtualProcess process)
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
source
protected void source(VirtualProcess process,
AbstractFile file)
throws IOException
- Throws:
IOException
source
protected void source(VirtualProcess process,
InputStream in)
throws IOException
- Throws:
IOException
parseArgs
protected void parseArgs(VirtualProcess process,
List<String> lineArgs)
throws IOException
- Throws:
IOException
parseLine
protected void parseLine(VirtualProcess process,
String line)
throws IOException
- Throws:
IOException
spawn
protected int spawn(Console term,
VirtualProcess process,
String[] args)
throws IOException
- Throws:
IOException
getLastError
public Throwable getLastError()
exit
public void exit()
Copyright © 2012. All Rights Reserved.