Remote Systems
v6.4.1

com.ibm.etools.systems.launch.impl
Class RemoteCommandLauncherImpl

java.lang.Object
  extended bycom.ibm.etools.systems.launch.impl.RemoteCommandLauncherImpl
All Implemented Interfaces:
IRemoteCommandLauncher, IRemoteOutputProxyEventListener

public class RemoteCommandLauncherImpl
extends Object
implements IRemoteCommandLauncher, IRemoteOutputProxyEventListener

A class implements IRemoteCommandLauncher.


Constructor Summary
RemoteCommandLauncherImpl(Shell shell, SystemConnection connection, String cmdString, String workingPath)
          Constructor.
 
Method Summary
 void addListener(IRemoteCommandLauncherStateListener listener)
           
protected  void cleanup(boolean destoryAssocatedProcess)
           
 void destory(boolean destoryAssociatedProcess)
           
 int exitValue()
           
protected  void fireEvent(RemoteCommandLauncherStateEvent event)
           
 RemoteProcess getProcess()
          Get RemoteProcess
 Shell getShell()
           
 void handleOutputEvent(RemoteOutputProxyEvent event)
           
 boolean isCommandCompleted()
           
 void removeListener(IRemoteCommandLauncherStateListener listener)
           
 int runCommand()
          Run command.
 void setCommandString(String cmdString)
           
 void setEnvironmentVariableList(String[] environmentNames, String[] environmentValues)
           
 void setWorkingPath(String workingPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteCommandLauncherImpl

public RemoteCommandLauncherImpl(Shell shell,
                                 SystemConnection connection,
                                 String cmdString,
                                 String workingPath)
Constructor.

Method Detail

runCommand

public int runCommand()
Run command.

Specified by:
runCommand in interface IRemoteCommandLauncher

exitValue

public int exitValue()
              throws IllegalThreadStateException
Specified by:
exitValue in interface IRemoteCommandLauncher
Returns:
Throws:
IllegalThreadStateException

isCommandCompleted

public boolean isCommandCompleted()
Specified by:
isCommandCompleted in interface IRemoteCommandLauncher

destory

public void destory(boolean destoryAssociatedProcess)
Specified by:
destory in interface IRemoteCommandLauncher

getProcess

public RemoteProcess getProcess()
Description copied from interface: IRemoteCommandLauncher
Get RemoteProcess

Specified by:
getProcess in interface IRemoteCommandLauncher

cleanup

protected void cleanup(boolean destoryAssocatedProcess)

getShell

public Shell getShell()

setCommandString

public void setCommandString(String cmdString)
Specified by:
setCommandString in interface IRemoteCommandLauncher
Parameters:
cmdString -

setWorkingPath

public void setWorkingPath(String workingPath)
Specified by:
setWorkingPath in interface IRemoteCommandLauncher
Parameters:
workingPath -

addListener

public void addListener(IRemoteCommandLauncherStateListener listener)
Specified by:
addListener in interface IRemoteCommandLauncher
Parameters:
listener -

removeListener

public void removeListener(IRemoteCommandLauncherStateListener listener)
Specified by:
removeListener in interface IRemoteCommandLauncher
Parameters:
listener -

fireEvent

protected void fireEvent(RemoteCommandLauncherStateEvent event)

handleOutputEvent

public void handleOutputEvent(RemoteOutputProxyEvent event)
Specified by:
handleOutputEvent in interface IRemoteOutputProxyEventListener

setEnvironmentVariableList

public void setEnvironmentVariableList(String[] environmentNames,
                                       String[] environmentValues)
Specified by:
setEnvironmentVariableList in interface IRemoteCommandLauncher
Parameters:
environmentNames -
environmentValues -

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.