Interface ScriptProcess
-
- All Superinterfaces:
java.lang.Comparable<ScriptProcess>
- All Known Implementing Classes:
AbstractScriptProcess,DefaultScriptProcess
public interface ScriptProcess extends java.lang.Comparable<ScriptProcess>
An external command executed as a client-sided script.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddScriptProcessListener(@NotNull ScriptProcessListener scriptProcessListener)Adds aScriptProcessListenerto be notified.voidcommandSent(@NotNull java.lang.String cmd)Sends a message to the script process.@NotNull java.lang.StringgetFilename()Returns the script's filename.intgetScriptId()Returns the script ID identifying this script instance.voidkillScript()Kills the script process.
-
-
-
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 aScriptProcessListenerto be notified.- Parameters:
scriptProcessListener- the listener to add
-
killScript
void killScript()
Kills the script process. Does nothing if the process is not running.
-
-