All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.processutils.ProcessExecutionHandler.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






ProcessExecutionHandler (org.spincast:spincast-framework 1.14.0 API)












org.spincast.plugins.processutils

Interface ProcessExecutionHandler

    • Method Detail

      • setProcessAndProcessKiller

        void setProcessAndProcessKiller(Process process,
                                        ProcessKiller processKiller)
        Internal use.

        Will be called automatically when the process is created.

      • isProcessAlive

        boolean isProcessAlive()
        Returns true if the process is alive;
      • onLaunchException

        void onLaunchException(Exception ex)
        Called if an exception occured during the launch of the program.
      • onTimeoutException

        void onTimeoutException()
        Called if the execution of the program exceeds the specified timeout.
      • onExit

        void onExit(int exitVal)
        Called when the process exits. In general, a 0 value means that no error occured.

        Note that this method will not be called if there is an exception while launching the program! In that case, onLaunchException(Exception) will be called instead.

      • onEnd

        void onEnd()
        Always called at the end, whether the process exited or an exception occured.
      • onSystemOut

        void onSystemOut(String line)
        Called when a line is written to the standard output by the created process.
      • onSystemErr

        void onSystemErr(String line)
        Called when a line is written to the standard errors by the created process.
      • killProcess

        void killProcess()
        Kill the process.

Copyright © 2019. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy