module

PlaceOS::Core::ProcessManager

Class methods

path_to_key(path : String) : String

Helper for extracting the driver key

Source

Instance methods

attach_debugger(module_id : String, socket : HTTP::WebSocket)
Source
debug(module_id : String, &_on_message : DebugCallback)
Source
driver_loaded?(driver_key : String) : Bool

Check for the presence of a running driver on a ProcessManager

Source
driver_status(driver_key : String) : DriverStatus | Nil

Generate a system status report

Source
execute(module_id : String, payload : String, user_id : String | Nil)

Execute a driver method on a module

Source
ignore(module_id : String, &_on_message : DebugCallback)
Source
ignore(module_id : String) : Array(DebugCallback)
Source
kill(driver_key : String)
Source
load(module_id : String, driver_key : String)
Source
loaded_modules

Count of distinct modules loaded on a ProcessManager

Source
module_loaded?(module_id : String) : Bool

Check for the presence of a module on a ProcessManager

Source
on_exec(request : Request, response_callback : Request -> )

Handler for execute requests from a module

Source
on_setting(id : String, setting_name : String, setting_value : YAML::Any)

Handler for settings updates

Source
on_system_model(request : Request, response_callback : Request -> )

Handler for retrieving PlaceOS::Model::ControlSystems for logic modules

Source
run_count

Returns the count of ...

  • unique drivers running
  • module processes
Source
start(module_id : String, payload : String)
Source
stop(module_id : String)
Source
system_status

Generate a system status report

Source
unload(module_id : String)
Source

Nested types