com.maverick.sshd.shell
Class RootShell

java.lang.Object
  extended by com.maverick.sshd.shell.AbstractCommand
      extended by com.maverick.sshd.shell.Msh
          extended by com.maverick.sshd.shell.RootShell
All Implemented Interfaces:
ShellCommand, Completor

public class RootShell
extends Msh


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
RootShell()
           
 
Method Summary
 void execCommand(com.maverick.util.DynamicBuffer input, TerminalOutput term, String cmd, SessionChannel session)
           
 void exit()
           
 VirtualProcess getProcess()
           
protected  void initVFS(SessionChannel session)
           
 void run(org.apache.commons.cli.CommandLine args, VirtualProcess process)
           
protected  void setKeyBindings(InputStream keyBindings)
           
 void start()
           
 boolean startShell(com.maverick.util.DynamicBuffer input, TerminalOutput term, SessionChannel session)
           
 
Methods inherited from class com.maverick.sshd.shell.Msh
doSpawn, getLastError, parseArgs, parseLine, source, source, spawn
 
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

RootShell

public RootShell()
Method Detail

run

public void run(org.apache.commons.cli.CommandLine args,
                VirtualProcess process)
         throws IOException,
                PermissionDeniedException
Specified by:
run in interface ShellCommand
Overrides:
run in class Msh
Throws:
IOException
PermissionDeniedException

startShell

public boolean startShell(com.maverick.util.DynamicBuffer input,
                          TerminalOutput term,
                          SessionChannel session)
                   throws IOException,
                          PermissionDeniedException
Throws:
IOException
PermissionDeniedException

setKeyBindings

protected void setKeyBindings(InputStream keyBindings)
                       throws IOException
Throws:
IOException

exit

public void exit()
Overrides:
exit in class Msh

execCommand

public void execCommand(com.maverick.util.DynamicBuffer input,
                        TerminalOutput term,
                        String cmd,
                        SessionChannel session)
                 throws IOException,
                        PermissionDeniedException
Throws:
IOException
PermissionDeniedException

getProcess

public VirtualProcess getProcess()

initVFS

protected void initVFS(SessionChannel session)
                throws PermissionDeniedException,
                       IOException
Throws:
PermissionDeniedException
IOException

start

public void start()


Copyright © 2012. All Rights Reserved.