class PlaceOS::Core::ProcessManager::Local

Included Modules

Defined in:

placeos-core/process_manager/local.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Instance methods inherited from module PlaceOS::Core::ProcessManager::Common

debug(module_id : String, &on_message : DebugCallback) debug, driver_key_for?(module_id) : String | Nil driver_key_for?, driver_loaded?(driver_key : String) : Bool driver_loaded?, driver_status(driver_key : String) : DriverStatus | Nil driver_status, execute(module_id : String, payload : String | IO, user_id : String | Nil) execute, ignore(module_id : String, &on_message : DebugCallback)
ignore(module_id : String) : Array(DebugCallback)
ignore
, kill(driver_key : String) : Bool kill, loaded_modules : Hash(String, Array(String)) loaded_modules, module_loaded?(module_id : String) : Bool module_loaded?, path_for?(module_id) : Path | Nil path_for?, remove_driver_manager(key) remove_driver_manager, run_count : Count run_count, start(module_id : String, payload : String) start, stop(module_id : String) stop, system_status : SystemStatus system_status, unload(module_id : String) unload

Macros inherited from module PlaceOS::Core::ProcessManager::Common

module_error(module_id, exception) module_error

Instance methods inherited from module PlaceOS::Core::ProcessManager

attach_debugger(module_id : String, socket : HTTP::WebSocket) attach_debugger, debug(module_id : String, &_on_message : DebugCallback) debug, driver_loaded?(driver_key : String) : Bool driver_loaded?, driver_status(driver_key : String) : DriverStatus | Nil driver_status, execute(module_id : String, payload : String, user_id : String | Nil) execute, ignore(module_id : String, &_on_message : DebugCallback)
ignore(module_id : String) : Array(DebugCallback)
ignore
, kill(driver_key : String) kill, load(module_id : String, driver_key : String) load, loaded_modules loaded_modules, module_loaded?(module_id : String) : Bool module_loaded?, on_exec(request : Request, response_callback : Request -> ) on_exec, on_setting(id : String, setting_name : String, setting_value : YAML::Any) on_setting, on_system_model(request : Request, response_callback : Request -> ) on_system_model, run_count : Count run_count, start(module_id : String, payload : String) start, stop(module_id : String) stop, system_status : SystemStatus system_status, unload(module_id : String) unload

Class methods inherited from module PlaceOS::Core::ProcessManager

path_to_key(path : String) : String path_to_key

Constructor Detail

def self.new(discovery : Clustering::Discovery) #

[View source]

Instance Method Detail

def execute(module_id : String, payload : String | IO, user_id : String | Nil) #

[View source]
def load(module_id : String, driver_key : String) #

[View source]
def on_exec(request : Request, response_callback : Request -> ) #
Description copied from module PlaceOS::Core::ProcessManager

Handler for execute requests from a module


[View source]
def on_system_model(request : Request, response_callback : Request -> ) #
Description copied from module PlaceOS::Core::ProcessManager

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


[View source]
def which_core(module_id : String) : URI #

Used in #on_exec for locating the remote module


[View source]