commands
Class shell

java.lang.Object
  extended by java.lang.Thread
      extended by kernel.AbstractProcess
          extended by commands.shell
All Implemented Interfaces:
java.lang.Runnable, IProcess

public class shell
extends AbstractProcess

Starts a new shell.

Since:
10.11.2007

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
shell()
           
 
Method Summary
 void disableStdIn()
           
 void enableStdIn()
           
 void execCommand(java.lang.String command)
           
 java.lang.String getHelp()
          Provides help for users.
 Pipe getStdInPipe()
           
 Pipe getStdOutPipe()
           
 java.io.OutputStream initErrDeamon()
           
 void kill()
          Kills the shell.
 void notifyDirChange()
           
 void procesEnd()
           
 void realization()
          Realizes the SHELL command.
 
Methods inherited from class kernel.AbstractProcess
equals, exec, getArgs, getCommand, getCurrentPath, getErrOut, getFirstChild, getID, getIn, getKernel, getNext, getOut, getParent, getParentCurrentPath, getParentShell, getPrevious, getServices, init, init, printError, run, setCurrentPath, setErrOut, setFirstChild, setIn, setNext, setOut, setParentCurrentPath, setPrevious, toString
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

shell

public shell()
Method Detail

disableStdIn

public void disableStdIn()

enableStdIn

public void enableStdIn()
Overrides:
enableStdIn in class AbstractProcess

execCommand

public void execCommand(java.lang.String command)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getHelp

public java.lang.String getHelp()
Provides help for users.


getStdInPipe

public Pipe getStdInPipe()

getStdOutPipe

public Pipe getStdOutPipe()

initErrDeamon

public java.io.OutputStream initErrDeamon()
                                   throws java.io.IOException
Throws:
java.io.IOException

kill

public void kill()
Kills the shell.

Overrides:
kill in class AbstractProcess

notifyDirChange

public void notifyDirChange()

procesEnd

public void procesEnd()

realization

public void realization()
                 throws AppException
Realizes the SHELL command.

Throws:
AppException - Exception caused by an error in the virtual machines manager.