Remote Systems
v6.4.1

com.ibm.etools.systems.localfilesubsys.impl
Class LocalCommandThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ibm.etools.systems.localfilesubsys.impl.LocalCommandThread
All Implemented Interfaces:
Runnable

public class LocalCommandThread
extends Thread

The LocalCommandThread class is used for running and interacting with a local command shell.


Nested Class Summary
 class LocalCommandThread.CompleteNotification
           
 class LocalCommandThread.RegainFocus
           
 
Field Summary
protected  boolean _isCancelled
           
static String Copyright
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LocalCommandThread(Shell shell, RemoteFileSubSystem fileSubSystem, String cwd, String invocation, Patterns patterns, String[] envVars)
          consturtor for local command shell monitor
 
Method Summary
 void cleanupThread()
           
 boolean doThreadedWork()
           
 LocalCommandShellImpl getCommandObject()
           
 String getCWD()
           
 String getInvocation()
           
 String getPathEnvironmentVariable()
           
 boolean isDone()
           
 boolean isShell()
           
 boolean isWindows()
           
 void run()
           
 void sendInput(String input)
           
 void setCWD(String cwd)
           
 void stopThread()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

_isCancelled

protected boolean _isCancelled
Constructor Detail

LocalCommandThread

public LocalCommandThread(Shell shell,
                          RemoteFileSubSystem fileSubSystem,
                          String cwd,
                          String invocation,
                          Patterns patterns,
                          String[] envVars)
consturtor for local command shell monitor

Parameters:
shell - window handle
fileSubSystem - associated local file subsystem
cwd - initial working directory
invocation - launch shell command
patterns - patterns file for output interpretation
envVars - user and system environment variables to launch shell with
Method Detail

getCommandObject

public LocalCommandShellImpl getCommandObject()

isShell

public boolean isShell()

isWindows

public boolean isWindows()

isDone

public boolean isDone()

getInvocation

public String getInvocation()

getCWD

public String getCWD()

setCWD

public void setCWD(String cwd)

stopThread

public void stopThread()

sendInput

public void sendInput(String input)

run

public void run()

doThreadedWork

public boolean doThreadedWork()

cleanupThread

public void cleanupThread()

getPathEnvironmentVariable

public String getPathEnvironmentVariable()

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.