Interface ScriptProcess

All Superinterfaces:
Comparable<ScriptProcess>
All Known Implementing Classes:
AbstractScriptProcess, DefaultScriptProcess

public interface ScriptProcess extends Comparable<ScriptProcess>
An external command executed as a client-sided script.
  • Method Details

    • getScriptId

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

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

      void commandSent(@NotNull @NotNull 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.