public abstract class DelegatingProcessHandler extends Object implements com.atlassian.utils.process.ProcessHandler
ProcessHandler
instance.Constructor and Description |
---|
DelegatingProcessHandler(com.atlassian.utils.process.ProcessHandler handler) |
Modifier and Type | Method and 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() |
public DelegatingProcessHandler(@NotNull com.atlassian.utils.process.ProcessHandler handler)
public void complete(int exitCode, boolean canceled, com.atlassian.utils.process.ProcessException exception)
complete
in interface com.atlassian.utils.process.ProcessHandler
public com.atlassian.utils.process.ProcessException getException()
getException
in interface com.atlassian.utils.process.ProcessHandler
public int getExitCode()
getExitCode
in interface com.atlassian.utils.process.ProcessHandler
public boolean hasInput()
hasInput
in interface com.atlassian.utils.process.ProcessHandler
public boolean isCanceled()
isCanceled
in interface com.atlassian.utils.process.ProcessHandler
public boolean isComplete()
isComplete
in interface com.atlassian.utils.process.ProcessHandler
public void processError(InputStream error) throws com.atlassian.utils.process.ProcessException
processError
in interface com.atlassian.utils.process.ProcessHandler
com.atlassian.utils.process.ProcessException
public void processOutput(InputStream output) throws com.atlassian.utils.process.ProcessException
processOutput
in interface com.atlassian.utils.process.ProcessHandler
com.atlassian.utils.process.ProcessException
public void provideInput(OutputStream input)
provideInput
in interface com.atlassian.utils.process.ProcessHandler
public void reset()
reset
in interface com.atlassian.utils.process.ProcessHandler
public void setWatchdog(com.atlassian.utils.process.Watchdog watchdog)
setWatchdog
in interface com.atlassian.utils.process.ProcessHandler
public boolean succeeded()
succeeded
in interface com.atlassian.utils.process.ProcessHandler
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.