Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
luaservice::ScriptState Struct Reference

A structure that descripts the state of a script. More...

Public Types

enum  ExecState { STAT_NEW , STAT_RUNNING , STAT_TERMINATED , STAT_RESTARTING }
 execution state for a scripts More...
 
enum  ExitType { EXIT_CODE , SIGNAL }
 Descripts the type of exitStatus. More...
 

Public Attributes

ExecState execState
 execution state of the script More...
 
ExitType exitType
 type of exit code More...
 
int exitStatus
 exit status or signal More...
 

Detailed Description

A structure that descripts the state of a script.

When a script is uploaded the new execState is STAT_NEW. exitCode and signal is not valid.

When the execState is changing to STAT_TERMINATED then exitCode and signal will be set.

Definition at line 46 of file LuaService.idl.

Member Enumeration Documentation

◆ ExecState

execution state for a scripts

Enumerator
STAT_NEW 

the script never ran (after uploading or system (re)start)

STAT_RUNNING 

script state is running

STAT_TERMINATED 

script state is terminated

STAT_RESTARTING 

script is terminated and restarts after 'restart interval'

Definition at line 49 of file LuaService.idl.

◆ ExitType

Descripts the type of exitStatus.

Enumerator
EXIT_CODE 

exitStatus is an exit code

SIGNAL 

exitStatus is a signal

Definition at line 57 of file LuaService.idl.

Member Data Documentation

◆ execState

ExecState luaservice::ScriptState::execState

execution state of the script

Definition at line 62 of file LuaService.idl.

◆ exitStatus

int luaservice::ScriptState::exitStatus

exit status or signal

Definition at line 64 of file LuaService.idl.

◆ exitType

ExitType luaservice::ScriptState::exitType

type of exit code

Definition at line 63 of file LuaService.idl.


The documentation for this struct was generated from the following file: