Interface ScriptProcess
- All Superinterfaces:
Comparable<ScriptProcess>
- All Known Implementing Classes:
AbstractScriptProcess,DefaultScriptProcess
An external command executed as a client-sided script.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddScriptProcessListener(@NotNull ScriptProcessListener scriptProcessListener) Adds aScriptProcessListenerto be notified.voidcommandSent(@NotNull String cmd) Sends a message to the script process.@NotNull StringReturns the script's filename.intReturns the script ID identifying this script instance.voidKills the script process.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getScriptId
int getScriptId()Returns the script ID identifying this script instance.- Returns:
- the script ID
-
getFilename
Returns the script's filename.- Returns:
- the script's filename
-
commandSent
Sends a message to the script process.- Parameters:
cmd- the message to send
-
addScriptProcessListener
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.
-