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.
Definition: LuaService.idl:96
map< string, ScriptState > getScriptStates()
Returns the state for all scripts.
int setScriptOptions(in string name, in ScriptOptions options)
Sets new options for a script.
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.
vector< string > getScriptNames()
Returns all script names in a string vector.
Lua-Service.
Definition: LuaService.idl:35
The struct represents two kinds of information:
Definition: LuaService.idl:81
int maxAmountOfScripts
number of scripts that can be stored (l)
Definition: LuaService.idl:83
int restartInterval
minimum delay to next (re)start (cs)
Definition: LuaService.idl:89
int allScriptSize
size of all script files (cs)
Definition: LuaService.idl:87
int amountOfScripts
number of scripts that are stored (cs)
Definition: LuaService.idl:84
int maxAllScriptSize
maximum size of all script files (l)
Definition: LuaService.idl:86
int autoStartDelay
minimum delay to 'autoStart' a script
Definition: LuaService.idl:90
int outputBufferSize
output buffer size per script (l)
Definition: LuaService.idl:88
int maxScriptSize
maximum size of a script file (l)
Definition: LuaService.idl:85
int maxScriptMemoryGrowth
maximum virtual memory growth per script (l)
Definition: LuaService.idl:82
some script options
Definition: LuaService.idl:68
boolean autoRestart
restarts a script after termination or crash
Definition: LuaService.idl:71
boolean autoStart
starts a script after system booting
Definition: LuaService.idl:70
map< string, string > defaultArgs
default arguments are passed to the lua script
Definition: LuaService.idl:69
A structure that descripts the state of a script.
Definition: LuaService.idl:46
ExitType
Descripts the type of exitStatus.
Definition: LuaService.idl:57
@ EXIT_CODE
exitStatus is an exit code
Definition: LuaService.idl:58
ExecState execState
execution state of the script
Definition: LuaService.idl:62
ExitType exitType
type of exit code
Definition: LuaService.idl:63
int exitStatus
exit status or signal
Definition: LuaService.idl:64
ExecState
execution state for a scripts
Definition: LuaService.idl:49
@ STAT_TERMINATED
script state is terminated
Definition: LuaService.idl:52
@ STAT_NEW
the script never ran (after uploading or system (re)start)
Definition: LuaService.idl:50
@ STAT_RUNNING
script state is running
Definition: LuaService.idl:51