Class 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 Detail

      • DelegatingProcessHandler

        public DelegatingProcessHandler​(@NotNull
                                        @NotNull com.atlassian.utils.process.ProcessHandler handler)
    • Method Detail

      • complete

        public void complete​(int exitCode,
                             boolean canceled,
                             com.atlassian.utils.process.ProcessException exception)
        Specified by:
        complete in interface com.atlassian.utils.process.ProcessHandler
      • getException

        public com.atlassian.utils.process.ProcessException getException()
        Specified by:
        getException in interface com.atlassian.utils.process.ProcessHandler
      • getExitCode

        public int getExitCode()
        Specified by:
        getExitCode in interface com.atlassian.utils.process.ProcessHandler
      • hasInput

        public boolean hasInput()
        Specified by:
        hasInput in interface com.atlassian.utils.process.ProcessHandler
      • isCanceled

        public boolean isCanceled()
        Specified by:
        isCanceled in interface com.atlassian.utils.process.ProcessHandler
      • isComplete

        public boolean isComplete()
        Specified by:
        isComplete in interface com.atlassian.utils.process.ProcessHandler
      • processError

        public void processError​(InputStream error)
                          throws com.atlassian.utils.process.ProcessException
        Specified by:
        processError in interface com.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 interface com.atlassian.utils.process.ProcessHandler
        Throws:
        com.atlassian.utils.process.ProcessException
      • provideInput

        public void provideInput​(OutputStream input)
        Specified by:
        provideInput in interface com.atlassian.utils.process.ProcessHandler
      • reset

        public void reset()
        Specified by:
        reset in interface com.atlassian.utils.process.ProcessHandler
      • setWatchdog

        public void setWatchdog​(com.atlassian.utils.process.Watchdog watchdog)
        Specified by:
        setWatchdog in interface com.atlassian.utils.process.ProcessHandler
      • succeeded

        public boolean succeeded()
        Specified by:
        succeeded in interface com.atlassian.utils.process.ProcessHandler