Remote Systems
v6.4.1

com.ibm.etools.systems.launch.remoteexternaltools
Class RemoteProgramOperation

java.lang.Object
  extended bycom.ibm.etools.systems.commands.RemoteCommandShellOperation
      extended bycom.ibm.etools.systems.launch.remoteexternaltools.RemoteProgramOperation
All Implemented Interfaces:
EventListener, ISystemResourceChangeListener

public class RemoteProgramOperation
extends RemoteCommandShellOperation


Nested Class Summary
 
Nested classes inherited from class com.ibm.etools.systems.commands.RemoteCommandShellOperation
RemoteCommandShellOperation.CommandAlias
 
Field Summary
protected  ILaunchConfiguration _config
           
protected  boolean _isBuild
           
protected  ILaunch _launch
           
 
Fields inherited from class com.ibm.etools.systems.commands.RemoteCommandShellOperation
_cmdSubSystem, _pwd, _remoteCmdShell, _shell
 
Fields inherited from interface com.ibm.etools.systems.model.ISystemResourceChangeListener
copyright
 
Constructor Summary
RemoteProgramOperation(Shell shell, RemoteCmdSubSystem rcss, IRemoteFile workdir, ILaunchConfiguration config, ILaunch launch, boolean isBuild)
           
 
Method Summary
 boolean canTerminate()
           
 Object getAdapter(Class arg0)
           
 String getAttribute(String arg0)
           
 String getCurrentCommand()
           
 int getExitValue()
           
 String getLabel()
           
 ILaunch getLaunch()
           
 IStreamsProxy getStreamsProxy()
           
 void handleCommandFinished(String cmd)
           
 void handleOutputChanged(String command, Object output)
           
 boolean isTerminated()
           
 void sendCommand(String cmd)
          Send a command to the running command shell.
 void setAttribute(String arg0, String arg1)
           
 void terminate()
           
 
Methods inherited from class com.ibm.etools.systems.commands.RemoteCommandShellOperation
associateProject, commandMatches, finish, getRemoteCommandShell, getShell, handleShellFinished, isActive, outputUpdated, run, sendInput, setWorkingDirectory, systemResourceChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_config

protected ILaunchConfiguration _config

_launch

protected ILaunch _launch

_isBuild

protected boolean _isBuild
Constructor Detail

RemoteProgramOperation

public RemoteProgramOperation(Shell shell,
                              RemoteCmdSubSystem rcss,
                              IRemoteFile workdir,
                              ILaunchConfiguration config,
                              ILaunch launch,
                              boolean isBuild)
Method Detail

handleCommandFinished

public void handleCommandFinished(String cmd)
Specified by:
handleCommandFinished in class RemoteCommandShellOperation

handleOutputChanged

public void handleOutputChanged(String command,
                                Object output)
Specified by:
handleOutputChanged in class RemoteCommandShellOperation

sendCommand

public void sendCommand(String cmd)
Description copied from class: RemoteCommandShellOperation
Send a command to the running command shell.

Overrides:
sendCommand in class RemoteCommandShellOperation
Parameters:
cmd - the command to run in the shell

getLabel

public String getLabel()

getCurrentCommand

public String getCurrentCommand()
Overrides:
getCurrentCommand in class RemoteCommandShellOperation

getLaunch

public ILaunch getLaunch()

getStreamsProxy

public IStreamsProxy getStreamsProxy()

setAttribute

public void setAttribute(String arg0,
                         String arg1)

getAttribute

public String getAttribute(String arg0)

getExitValue

public int getExitValue()
                 throws DebugException
Throws:
DebugException

getAdapter

public Object getAdapter(Class arg0)

canTerminate

public boolean canTerminate()

isTerminated

public boolean isTerminated()

terminate

public void terminate()
               throws DebugException
Throws:
DebugException

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.