com.xebialabs.deployit.plugin.overthere
Class DefaultExecutionOutputHandler

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

public class DefaultExecutionOutputHandler
extends java.lang.Object
implements com.xebialabs.overthere.OverthereExecutionOutputHandler, java.io.Closeable

An OverthereExecutionOutputHandler that delegates actual logging to its subclass. When no output has been sent to the stream in a while, it is flushed automatically.


Field Summary
static int FLUSH_CHECK_INTERVAL_MS
           
static int FLUSH_DELAY_MS
           
 
Method Summary
 void close()
           
 void handleChar(char c)
           
 void handleLine(java.lang.String line)
           
static DefaultExecutionOutputHandler handleStderr(com.xebialabs.deployit.plugin.api.flow.ExecutionContext context)
           
static DefaultExecutionOutputHandler handleStdout(com.xebialabs.deployit.plugin.api.flow.ExecutionContext context)
           
 
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
Method Detail

handleLine

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

handleChar

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

close

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

handleStdout

public static DefaultExecutionOutputHandler handleStdout(com.xebialabs.deployit.plugin.api.flow.ExecutionContext context)

handleStderr

public static DefaultExecutionOutputHandler handleStderr(com.xebialabs.deployit.plugin.api.flow.ExecutionContext context)