Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.services.shells
Class AbstractHostShellOutputReader


java.lang.Object
  extended by 

java.lang.Thread
      extended by 
org.eclipse.rse.services.shells.AbstractHostShellOutputReader
All Implemented Interfaces:
Runnable, IHostShellOutputNotifier, IHostShellOutputReader

public abstract class AbstractHostShellOutputReader
extends Thread
implements IHostShellOutputReader


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang. Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  int _consumerOffset
           
protected   IHostShell _hostShell
           
protected  boolean _isErrorReader
           
protected  boolean _keepRunning
           
protected   List _linesOfOutput
           
protected   List _listeners
           
protected  int _sizeAtLastEvent
           
protected  long _timeOfLastEvent
           
protected  int _waitIncrement
           
 
Fields inherited from class java.lang. Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractHostShellOutputReader ( IHostShell hostShell, boolean isErrorReader)
           
 
Method Summary
protected  void addLine ( IHostOutput line)
           
 void addOutputListener ( IHostShellOutputListener listener)
           
 void dispose ()
           
 void finish ()
           
 void fireOutputChanged ( IHostShellChangeEvent event)
           
  IHostShell getHostShell ()
           
 int getWaitTime ()
           
 void handle ()
           
protected abstract   IHostOutput internalReadLine ()
           
 boolean isErrorReader ()
           
 boolean isFinished ()
           
  IHostOutput readLine ()
           
  IHostOutput readLine (int lineNumber)
           
 void run ()
           
 void setLineOffset (int lineNumber)
           
 void setWaitTime (int value)
           
protected  void startIfNotAlive ()
           
 
Methods inherited from class java.lang. Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

_listeners

protected 
List _listeners

_waitIncrement

protected int _waitIncrement

_keepRunning

protected boolean _keepRunning

_linesOfOutput

protected 
List _linesOfOutput

_consumerOffset

protected int _consumerOffset

_hostShell

protected 
IHostShell _hostShell

_isErrorReader

protected boolean _isErrorReader

_timeOfLastEvent

protected long _timeOfLastEvent

_sizeAtLastEvent

protected int _sizeAtLastEvent
Constructor Detail

AbstractHostShellOutputReader

public AbstractHostShellOutputReader(
IHostShell hostShell,
                                     boolean isErrorReader)
Method Detail

isErrorReader

public boolean isErrorReader()
Specified by:
isErrorReader in interface IHostShellOutputReader

getHostShell

public 
IHostShell getHostShell()

setWaitTime

public void setWaitTime(int value)

getWaitTime

public int getWaitTime()

handle

public void handle()

addLine

protected void addLine(
IHostOutput line)

startIfNotAlive

protected final void startIfNotAlive()
Since:
3.0

readLine

public 
IHostOutput readLine()
Specified by:
readLine in interface IHostShellOutputReader

readLine

public 
IHostOutput readLine(int lineNumber)
Specified by:
readLine in interface IHostShellOutputReader

setLineOffset

public void setLineOffset(int lineNumber)

addOutputListener

public void addOutputListener(
IHostShellOutputListener listener)
Specified by:
addOutputListener in interface IHostShellOutputReader

fireOutputChanged

public void fireOutputChanged(
IHostShellChangeEvent event)
Specified by:
fireOutputChanged in interface IHostShellOutputNotifier

dispose

public void dispose()

isFinished

public boolean isFinished()

finish

public void finish()
Specified by:
finish in interface IHostShellOutputReader

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

internalReadLine

protected abstract 
IHostOutput internalReadLine()

RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire