221 int getScriptOutput(in
string name, in
long iAddr, out
long oAddr, out
long nAddr, out
string oString, out
boolean more);
There is a single manager instance.
constant int ERR_NO_SUCH_SCRIPT
script name not found
constant int ERR_NOT_TERMINATED
script is not terminated
constant int ERR_MAX_SCRIPT_NUMBERS_EXCEEDED
maximum amount of stored script files is reached
map< string, ScriptState > getScriptStates()
Returns the state for all scripts.
constant int NO_ERROR
Error codes.
int setScriptOptions(in string name, in ScriptOptions options)
Sets new options for a script.
vector< string > getScriptNames()
Returns all script names in a string vector.
constant int ERR_NOT_RUNNING
script is not running
constant int ERR_INVALID_ADDR
address parameter is wrong
constant int ERR_INVALID_NAME
script name is invalid
int getScript(in string name, out string script)
To download a script file to user.
constant int ERR_MAX_SCRIPT_SIZE_EXCEEDED
maximum size of a script file is reached
int setScript(in string name, in string script, in ScriptOptions options)
Upload a script to instance.
int getScriptOutput(in string name, in long iAddr, out long oAddr, out long nAddr, out string oString, out boolean more)
To get output from a script as a string.
int terminateScript(in string name)
To stop a script.
constant int ERR_TOO_MANY_ARGUMENTS
too many arguments
int getScriptState(in string name, out ScriptState state)
Returns the state for a single script.
int startScript(in string name)
To start a script.
int deleteScript(in string name)
Deletes a script.
int getScriptOptions(in string name, out ScriptOptions options)
Returns the options for a script.
int startScriptWithArgs(in string name, in map< string, string > arguments)
To start a script with arguments.
Environment getEnvironment()
To query the environment information.
constant int ERR_MAX_ALL_SCRIPT_SIZE_EXCEEDED
maximum size of all script files is reached
constant int ERR_ARGUMENT_NOT_VALID
the argument has one or more invalid characters
int clearScriptOutput(in string name)
Clear the output buffer of a script.
The struct represents two kinds of information:
int maxAmountOfScripts
number of scripts that can be stored (l)
int restartInterval
minimum delay to next (re)start (cs)
int allScriptSize
size of all script files (cs)
int amountOfScripts
number of scripts that are stored (cs)
int maxAllScriptSize
maximum size of all script files (l)
int autoStartDelay
minimum delay to 'autoStart' a script
int outputBufferSize
output buffer size per script (l)
int maxScriptSize
maximum size of a script file (l)
int maxScriptMemoryGrowth
maximum virtual memory growth per script (l)
boolean autoRestart
restarts a script after termination or crash
boolean autoStart
starts a script after system booting
map< string, string > defaultArgs
default arguments are passed to the lua script
A structure that descripts the state of a script.
ExitType
Descripts the type of exitStatus.
@ SIGNAL
exitStatus is a signal
@ EXIT_CODE
exitStatus is an exit code
ExecState execState
execution state of the script
ExitType exitType
type of exit code
int exitStatus
exit status or signal
ExecState
execution state for a scripts
@ STAT_RESTARTING
script is terminated and restarts after 'restart interval'
@ STAT_TERMINATED
script state is terminated
@ STAT_NEW
the script never ran (after uploading or system (re)start)
@ STAT_RUNNING
script state is running