com.xebialabs.deployit.plugin.overthere
Class AutoFlushingExecutionContextOverthereProcessOutputHandler

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

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

A CommandExecutionCallbackHandler that logs the output to a ExecutionContext. 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
AutoFlushingExecutionContextOverthereProcessOutputHandler(com.xebialabs.deployit.plugin.api.execution.ExecutionContext ctx)
           
 
Method Summary
 void close()
           
 void handleErrorLine(java.lang.String line)
           
 void handleOutput(char c)
           
 void handleOutputLine(java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

AutoFlushingExecutionContextOverthereProcessOutputHandler

public AutoFlushingExecutionContextOverthereProcessOutputHandler(com.xebialabs.deployit.plugin.api.execution.ExecutionContext ctx)
Method Detail

handleOutputLine

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

handleErrorLine

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

handleOutput

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

close

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