Interface ScriptProcess

    • Method Detail

      • getScriptId

        int getScriptId()
        Returns the script ID identifying this script instance.
        Returns:
        the script ID
      • getFilename

        @NotNull
        @NotNull java.lang.String getFilename()
        Returns the script's filename.
        Returns:
        the script's filename
      • commandSent

        void commandSent​(@NotNull
                         @NotNull java.lang.String cmd)
        Sends a message to the script process.
        Parameters:
        cmd - the message to send
      • addScriptProcessListener

        void addScriptProcessListener​(@NotNull
                                      @NotNull ScriptProcessListener scriptProcessListener)
        Adds a ScriptProcessListener to be notified.
        Parameters:
        scriptProcessListener - the listener to add
      • killScript

        void killScript()
        Kills the script process. Does nothing if the process is not running.