Remote Systems
v6.4.1

com.ibm.etools.systems.localfilesubsys.util
Class OutputHandler

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ibm.etools.systems.localfilesubsys.util.OutputHandler
All Implemented Interfaces:
ISystemOutputRemoteTypes, Runnable

public class OutputHandler
extends Thread
implements ISystemOutputRemoteTypes

Listener to shell output. As io streams through, refresh events are sent out for the OutputChangeListener to respond to.


Nested Class Summary
 class OutputHandler.OutputRefresh
           
 
Field Summary
protected  int _waitIncrement
           
static String Copyright
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface com.ibm.etools.systems.commands.ISystemOutputRemoteTypes
copyright, TYPE_COMMAND, TYPE_DIRECTORY, TYPE_ENVVAR, TYPE_ENVVAR_LIBPATH, TYPE_ENVVAR_PATH, TYPE_ERROR, TYPE_FILE, TYPE_GREP, TYPE_INFORMATIONAL, TYPE_PROCESS, TYPE_PROMPT, TYPE_WARNING, TYPECATEGORY
 
Constructor Summary
OutputHandler(BufferedReader reader, LocalCommandShellImpl commandObject, Shell shell, Patterns patterns, boolean isStdError)
           
 
Method Summary
 void finish()
           
 Object getLastOutput()
           
 int getWaitTime()
           
 void handle()
           
 boolean isFinished()
           
 void refresh(Object lineObject, boolean cwdChanged)
           
 void run()
           
 void setWaitTime(int value)
           
 
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

_waitIncrement

protected int _waitIncrement
Constructor Detail

OutputHandler

public OutputHandler(BufferedReader reader,
                     LocalCommandShellImpl commandObject,
                     Shell shell,
                     Patterns patterns,
                     boolean isStdError)
Method Detail

setWaitTime

public void setWaitTime(int value)

getWaitTime

public int getWaitTime()

getLastOutput

public Object getLastOutput()

handle

public void handle()

refresh

public void refresh(Object lineObject,
                    boolean cwdChanged)

isFinished

public boolean isFinished()

finish

public void finish()

run

public void run()
Specified by:
run in interface Runnable

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.