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 suppliedProcessHandler
instance.
-
-
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 void
complete(int exitCode, boolean canceled, com.atlassian.utils.process.ProcessException exception)
com.atlassian.utils.process.ProcessException
getException()
int
getExitCode()
boolean
hasInput()
boolean
isCanceled()
boolean
isComplete()
void
processError(InputStream error)
void
processOutput(InputStream output)
void
provideInput(OutputStream input)
void
reset()
void
setWatchdog(com.atlassian.utils.process.Watchdog watchdog)
boolean
succeeded()
-
-
-
Method Detail
-
complete
public void complete(int exitCode, boolean canceled, com.atlassian.utils.process.ProcessException exception)
- Specified by:
complete
in interfacecom.atlassian.utils.process.ProcessHandler
-
getException
public com.atlassian.utils.process.ProcessException getException()
- Specified by:
getException
in interfacecom.atlassian.utils.process.ProcessHandler
-
getExitCode
public int getExitCode()
- Specified by:
getExitCode
in interfacecom.atlassian.utils.process.ProcessHandler
-
hasInput
public boolean hasInput()
- Specified by:
hasInput
in interfacecom.atlassian.utils.process.ProcessHandler
-
isCanceled
public boolean isCanceled()
- Specified by:
isCanceled
in interfacecom.atlassian.utils.process.ProcessHandler
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfacecom.atlassian.utils.process.ProcessHandler
-
processError
public void processError(InputStream error) throws com.atlassian.utils.process.ProcessException
- Specified by:
processError
in 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:
processOutput
in interfacecom.atlassian.utils.process.ProcessHandler
- Throws:
com.atlassian.utils.process.ProcessException
-
provideInput
public void provideInput(OutputStream input)
- Specified by:
provideInput
in interfacecom.atlassian.utils.process.ProcessHandler
-
reset
public void reset()
- Specified by:
reset
in interfacecom.atlassian.utils.process.ProcessHandler
-
setWatchdog
public void setWatchdog(com.atlassian.utils.process.Watchdog watchdog)
- Specified by:
setWatchdog
in interfacecom.atlassian.utils.process.ProcessHandler
-
succeeded
public boolean succeeded()
- Specified by:
succeeded
in interfacecom.atlassian.utils.process.ProcessHandler
-
-