99 constant
int NO_ERROR = 0;
100 constant
int ERR_INVALID_NAME = 1;
101 constant
int ERR_NO_SUCH_SCRIPT = 2;
102 constant
int ERR_MAX_SCRIPT_NUMBERS_EXCEEDED = 3;
103 constant
int ERR_MAX_SCRIPT_SIZE_EXCEEDED = 4;
104 constant
int ERR_MAX_ALL_SCRIPT_SIZE_EXCEEDED = 5;
105 constant
int ERR_NOT_TERMINATED = 6;
106 constant
int ERR_NOT_RUNNING = 7;
107 constant
int ERR_INVALID_ADDR = 8;
108 constant
int ERR_TOO_MANY_ARGUMENTS = 10;
109 constant
int ERR_ARGUMENT_NOT_VALID = 11;
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.
map< string, ScriptState > getScriptStates()
Returns the state for all scripts.
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.
int getScript(in string name, out string script)
To download a script file to user.
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.
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.
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.
@ 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_TERMINATED
script state is terminated
@ STAT_NEW
the script never ran (after uploading or system (re)start)
@ STAT_RUNNING
script state is running