com.buglabs.osgi.filesystem.util
Class PipeWriterThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.buglabs.osgi.filesystem.util.AbstractPipeThread
          extended by com.buglabs.osgi.filesystem.util.PipeWriterThread
All Implemented Interfaces:
java.lang.Runnable

public class PipeWriterThread
extends AbstractPipeThread

Push output of reader to clients on other side of pipe.


Nested Class Summary
static interface PipeWriterThread.ContentSource
          Defines the source of content from which will be read and sent to clients on the pipe.
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class com.buglabs.osgi.filesystem.util.AbstractPipeThread
log, pipe
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PipeWriterThread(java.io.File pipe, PipeWriterThread.ContentSource output, LogService log)
          Create writer
PipeWriterThread(java.io.File pipe, TableViewer viewer, LogService log)
          Create writer
 
Method Summary
 void run()
           
 void shutdown()
          Exit writing thread.
 
Methods inherited from class com.buglabs.osgi.filesystem.util.AbstractPipeThread
createPipe
 
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
 

Constructor Detail

PipeWriterThread

public PipeWriterThread(java.io.File pipe,
                        PipeWriterThread.ContentSource output,
                        LogService log)
Create writer

Parameters:
pipe -
reader -

PipeWriterThread

public PipeWriterThread(java.io.File pipe,
                        TableViewer viewer,
                        LogService log)
Create writer

Parameters:
pipe -
reader -
Method Detail

run

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

shutdown

public void shutdown()
Exit writing thread.

Specified by:
shutdown in class AbstractPipeThread