com.atlassian.fisheye.plugins.scm.utils.process
Class BaseOutputHandler

java.lang.Object
  extended by com.atlassian.fisheye.plugins.scm.utils.process.BaseOutputHandler
All Implemented Interfaces:
OutputHandler
Direct Known Subclasses:
CopyOutputHandler, LineOutputHandler, StringOutputHandler

public abstract class BaseOutputHandler
extends java.lang.Object
implements OutputHandler


Constructor Summary
BaseOutputHandler()
           
 
Method Summary
 void cancelProcess()
           
 void complete()
          Called when the process completes.
protected  void resetWatchdog()
           
 void setWatchdog(Watchdog watchdog)
          Set the watchdog that this handler should be resetting to prevent the process from being terminated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.fisheye.plugins.scm.utils.process.OutputHandler
process
 

Constructor Detail

BaseOutputHandler

public BaseOutputHandler()
Method Detail

setWatchdog

public void setWatchdog(Watchdog watchdog)
Description copied from interface: OutputHandler
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.

Specified by:
setWatchdog in interface OutputHandler
Parameters:
watchdog - process watchdog instance.

resetWatchdog

protected void resetWatchdog()

cancelProcess

public void cancelProcess()

complete

public void complete()
Description copied from interface: OutputHandler
Called when the process completes. This call allows the output handler to close any open resources and finalize any processing.

Specified by:
complete in interface OutputHandler