com.maverick.sshd.shell
Class Msh

java.lang.Object
  extended by com.maverick.sshd.shell.AbstractCommand
      extended by 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
           
 
Fields inherited from class com.maverick.sshd.shell.AbstractCommand
exitCode
 
Fields inherited from interface com.maverick.sshd.shell.ShellCommand
STILL_ACTIVE, SUBSYSTEM_CALLBACK, SUBSYSTEM_FILESYSTEM, SUBSYSTEM_HELP, SUBSYSTEM_JVM, SUBSYSTEM_POLICY, SUBSYSTEM_SHELL, SUBSYSTEM_SSHD, SUBSYSTEM_SYSTEM, SUBSYSTEM_TEXT_EDITING
 
Constructor Summary
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)
           
 
Method Summary
 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)
           
 
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
 

Field Detail

log

public static final org.apache.commons.logging.Log log
Constructor Detail

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)
Method Detail

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.