com.xebialabs.deployit.plugin.overthere
Class AutoFlushingProcessOutputHandler

java.lang.Object
  extended by com.xebialabs.deployit.plugin.overthere.AutoFlushingProcessOutputHandler
All Implemented Interfaces:
com.xebialabs.overthere.OverthereProcessOutputHandler, java.io.Closeable
Direct Known Subclasses:
AutoFlushingExecutionContextOverthereProcessOutputHandler, DefaultProcessOutputHandler

public abstract class AutoFlushingProcessOutputHandler
extends java.lang.Object
implements com.xebialabs.overthere.OverthereProcessOutputHandler, java.io.Closeable

A OverthereProcessOutputHandler that delegates actual logging to its subclass. When no output has been sent to stdout in a while, it is flushed automatically.


Field Summary
static int FLUSH_CHECK_INTERVAL_MS
           
static int FLUSH_DELAY_MS
           
 
Constructor Summary
AutoFlushingProcessOutputHandler()
           
 
Method Summary
 void close()
           
 void handleOutput(char c)
           
protected abstract  void handleOutput(java.lang.String buffer)
           
 void handleOutputLine(java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.xebialabs.overthere.OverthereProcessOutputHandler
handleErrorLine
 

Field Detail

FLUSH_DELAY_MS

public static final int FLUSH_DELAY_MS
See Also:
Constant Field Values

FLUSH_CHECK_INTERVAL_MS

public static final int FLUSH_CHECK_INTERVAL_MS
See Also:
Constant Field Values
Constructor Detail

AutoFlushingProcessOutputHandler

public AutoFlushingProcessOutputHandler()
Method Detail

handleOutputLine

public final void handleOutputLine(java.lang.String line)
Specified by:
handleOutputLine in interface com.xebialabs.overthere.OverthereProcessOutputHandler

handleOutput

public final void handleOutput(char c)
Specified by:
handleOutput in interface com.xebialabs.overthere.OverthereProcessOutputHandler

handleOutput

protected abstract void handleOutput(java.lang.String buffer)

close

public void close()
Specified by:
close in interface java.io.Closeable