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 supplied
ProcessHandler
instance.-
Constructor Summary
ConstructorDescriptionDelegatingProcessHandler
(@NotNull com.atlassian.utils.process.ProcessHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
complete
(int exitCode, boolean canceled, com.atlassian.utils.process.ProcessException exception) com.atlassian.utils.process.ProcessException
int
boolean
hasInput()
boolean
boolean
void
processError
(InputStream error) void
processOutput
(InputStream output) void
provideInput
(OutputStream input) void
reset()
void
setWatchdog
(com.atlassian.utils.process.Watchdog watchdog) boolean
-
Constructor Details
-
DelegatingProcessHandler
public DelegatingProcessHandler(@NotNull @NotNull com.atlassian.utils.process.ProcessHandler handler)
-
-
Method Details
-
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
- Specified by:
processError
in interfacecom.atlassian.utils.process.ProcessHandler
- Throws:
com.atlassian.utils.process.ProcessException
-
processOutput
- Specified by:
processOutput
in interfacecom.atlassian.utils.process.ProcessHandler
- Throws:
com.atlassian.utils.process.ProcessException
-
provideInput
- 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
-