Package com.atlassian.bamboo.process
Class DelegatingProcessHandler
- java.lang.Object
-
- com.atlassian.bamboo.process.DelegatingProcessHandler
-
- All Implemented Interfaces:
com.atlassian.utils.process.ProcessHandler
public abstract class DelegatingProcessHandler extends Object implements com.atlassian.utils.process.ProcessHandler
Delegates all calls to the suppliedProcessHandlerinstance.
-
-
Constructor Summary
Constructors Constructor Description DelegatingProcessHandler(@NotNull com.atlassian.utils.process.ProcessHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomplete(int exitCode, boolean canceled, com.atlassian.utils.process.ProcessException exception)com.atlassian.utils.process.ProcessExceptiongetException()intgetExitCode()booleanhasInput()booleanisCanceled()booleanisComplete()voidprocessError(InputStream error)voidprocessOutput(InputStream output)voidprovideInput(OutputStream input)voidreset()voidsetWatchdog(com.atlassian.utils.process.Watchdog watchdog)booleansucceeded()
-
-
-
Method Detail
-
complete
public void complete(int exitCode, boolean canceled, com.atlassian.utils.process.ProcessException exception)- Specified by:
completein interfacecom.atlassian.utils.process.ProcessHandler
-
getException
public com.atlassian.utils.process.ProcessException getException()
- Specified by:
getExceptionin interfacecom.atlassian.utils.process.ProcessHandler
-
getExitCode
public int getExitCode()
- Specified by:
getExitCodein interfacecom.atlassian.utils.process.ProcessHandler
-
hasInput
public boolean hasInput()
- Specified by:
hasInputin interfacecom.atlassian.utils.process.ProcessHandler
-
isCanceled
public boolean isCanceled()
- Specified by:
isCanceledin interfacecom.atlassian.utils.process.ProcessHandler
-
isComplete
public boolean isComplete()
- Specified by:
isCompletein interfacecom.atlassian.utils.process.ProcessHandler
-
processError
public void processError(InputStream error) throws com.atlassian.utils.process.ProcessException
- Specified by:
processErrorin interfacecom.atlassian.utils.process.ProcessHandler- Throws:
com.atlassian.utils.process.ProcessException
-
processOutput
public void processOutput(InputStream output) throws com.atlassian.utils.process.ProcessException
- Specified by:
processOutputin interfacecom.atlassian.utils.process.ProcessHandler- Throws:
com.atlassian.utils.process.ProcessException
-
provideInput
public void provideInput(OutputStream input)
- Specified by:
provideInputin interfacecom.atlassian.utils.process.ProcessHandler
-
reset
public void reset()
- Specified by:
resetin interfacecom.atlassian.utils.process.ProcessHandler
-
setWatchdog
public void setWatchdog(com.atlassian.utils.process.Watchdog watchdog)
- Specified by:
setWatchdogin interfacecom.atlassian.utils.process.ProcessHandler
-
succeeded
public boolean succeeded()
- Specified by:
succeededin interfacecom.atlassian.utils.process.ProcessHandler
-
-