com.atlassian.fisheye.plugins.scm.utils.process
Interface OutputHandler

All Known Implementing Classes:
BaseOutputHandler, CopyOutputHandler, LineOutputHandler, StringOutputHandler

public interface OutputHandler

A Handler for process output The OutputHandler interface is designed to allow different output handling strategies to be plugged into process handlers


Method Summary
 void complete()
          Called when the process completes.
 void process(java.io.InputStream output)
          Process an output stream generated by the external process (either stdout or stderr)
 void setWatchdog(Watchdog watchdog)
          Set the watchdog that this handler should be resetting to prevent the process from being terminated.
 

Method Detail

process

void process(java.io.InputStream output)
             throws ProcessException
Process an output stream generated by the external process (either stdout or stderr)

Parameters:
output - the external process' output stream (available as an input to this class)
Throws:
ProcessException - if there is a problem processing the output

complete

void complete()
Called when the process completes. This call allows the output handler to close any open resources and finalize any processing.


setWatchdog

void setWatchdog(Watchdog watchdog)
Set the watchdog that this handler should be resetting to prevent the process from being terminated. The watchdog should be called periodically based on output generated by the process.

Parameters:
watchdog - process watchdog instance.