Package com.atlassian.bitbucket.scm
Interface CommandHandlerSupport
- All Known Subinterfaces:
CommandErrorHandler,CommandInputHandler,CommandOutputHandler<T>,CommandOutputHandlerSupport
public interface CommandHandlerSupport
Provides the common callback methods for input, output and error handlers which process the standard input, error
or output stream from a
Command.- Since:
- 8.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcomplete()Called when the process completes.voidsetWatchdog(Watchdog watchdog) Set the watchdog that this handler should be resetting to prevent the process from being terminated.
-
Method Details
-
complete
Called when the process completes. This call allows the output handler to close any open resources and finalize any processing.- Throws:
IOException- if there is a problem completing processing
-
setWatchdog
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.
-