RSE
Release 1.0

org.eclipse.rse.services.ssh.shell
Class SshHostShell

java.lang.Object
  extended byorg.eclipse.rse.services.shells.AbstractHostShell
      extended byorg.eclipse.rse.services.ssh.shell.SshHostShell
All Implemented Interfaces:
IHostShell

public class SshHostShell
extends AbstractHostShell
implements IHostShell

A Shell subsystem for SSH.


Field Summary
static String SHELL_INVOCATION
           
 
Constructor Summary
SshHostShell(ISshSessionProvider sessionProvider, String initialWorkingDirectory, String commandToRun, String encoding, String[] environment)
           
 
Method Summary
 void exit()
           
 String getPromptCommand()
           
 IHostShellOutputReader getStandardErrorReader()
           
 IHostShellOutputReader getStandardOutputReader()
           
 boolean isActive()
           
protected  void start(IProgressMonitor monitor)
          Connect to remote system and launch Threads for the shell as needed.
 void writeToShell(String command)
           
 
Methods inherited from class org.eclipse.rse.services.shells.AbstractHostShell
addOutputListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.services.shells.IHostShell
addOutputListener
 

Field Detail

SHELL_INVOCATION

public static final String SHELL_INVOCATION
See Also:
Constant Field Values
Constructor Detail

SshHostShell

public SshHostShell(ISshSessionProvider sessionProvider,
                    String initialWorkingDirectory,
                    String commandToRun,
                    String encoding,
                    String[] environment)
Method Detail

start

protected void start(IProgressMonitor monitor)
Connect to remote system and launch Threads for the shell as needed.

Parameters:
monitor -

isActive

public boolean isActive()
Specified by:
isActive in interface IHostShell

getPromptCommand

public String getPromptCommand()

writeToShell

public void writeToShell(String command)
Specified by:
writeToShell in interface IHostShell

getStandardOutputReader

public IHostShellOutputReader getStandardOutputReader()
Specified by:
getStandardOutputReader in interface IHostShell

getStandardErrorReader

public IHostShellOutputReader getStandardErrorReader()
Specified by:
getStandardErrorReader in interface IHostShell

exit

public void exit()
Specified by:
exit in interface IHostShell

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.