class PlaceOS::Core::ProcessManager::Edge
- PlaceOS::Core::ProcessManager::Edge
- Reference
- Object
Included Modules
Defined in:
placeos-core/process_manager/edge.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Class Method Summary
-
.extract_remote_error_class(message : String) : Tuple(String, String)
Uses a
Regex
to extract the remote exception.
Instance Method Summary
- #debug(module_id : String, &on_message : DebugCallback)
-
#driver_loaded?(driver_key : String) : Bool
Check for the presence of a running driver on a ProcessManager
-
#driver_status(driver_key : String) : DriverStatus | Nil
Generate a system status report
- #edge_id : String
-
#execute(module_id : String, payload : String, user_id : String | Nil)
Execute a driver method on a module
- #fetch_binary(driver_key : String) : Protocol::Message::BinaryBody
- #forward_debug_message(module_id : String, message : String)
- #handle_request(sequence_id : UInt64, request : Protocol::Client::Request)
- #ignore(module_id : String, &on_message : DebugCallback)
-
#ignore(module_id : String) : Array(DebugCallback)
Remove all debug listeners on a module, returning the debug callback array
- #kill(driver_key : String)
- #load(module_id : String, driver_key : String)
-
#loaded_modules
Count of distinct modules loaded on a ProcessManager
-
#module_loaded?(module_id : String) : Bool
Check for the presence of a module on a ProcessManager
-
#on_exec(request : Request, response_callback : Request -> )
Handler for execute requests from a module
- #on_redis(action : Protocol::RedisAction, hash_id : String, key_name : String, status_value : String | Nil)
-
#on_system_model(request : Request, response_callback : Request -> )
Handler for retrieving
PlaceOS::Model::ControlSystem
s for logic modules -
#run_count : Count
Returns the count of ...
- #start(module_id : String, payload : String)
- #stop(module_id : String)
-
#system_status : SystemStatus
Generate a system status report
- #transport : Transport
- #unload(module_id : String)
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
Class Method Detail
Uses a Regex
to extract the remote exception.
Instance Method Detail
Check for the presence of a running driver on a ProcessManager
Generate a system status report
Execute a driver method on a module
Remove all debug listeners on a module, returning the debug callback array
Count of distinct modules loaded on a ProcessManager
Check for the presence of a module on a ProcessManager
Handler for execute requests from a module
Handler for retrieving PlaceOS::Model::ControlSystem
s for logic modules
Returns the count of ...
- unique drivers running
- module processes
Generate a system status report