module PlaceOS::Core::ProcessManager::Common

Overview

Methods for interacting with module processes common across a local and edge node

Direct including types

Defined in:

placeos-core/process_manager/common.cr

Macro Summary

Instance Method Summary

Macro Detail

macro module_error(module_id, exception) #

[View source]

Instance Method Detail

def debug(module_id : String, &on_message : DebugCallback) #

[View source]
def driver_key_for?(module_id) : String | Nil #

HACK: Retrieve the driver key from the module_id


[View source]
def driver_loaded?(driver_key : String) : Bool #

[View source]
def driver_status(driver_key : String) : DriverStatus | Nil #

[View source]
def execute(module_id : String, payload : String | IO, user_id : String | Nil) #

[View source]
def ignore(module_id : String, &on_message : DebugCallback) #

[View source]
def ignore(module_id : String) : Array(DebugCallback) #

[View source]
def kill(driver_key : String) : Bool #

[View source]
def loaded_modules : Hash(String, Array(String)) #

Map reduce the querying of what modules are loaded on running drivers


[View source]
def module_loaded?(module_id : String) : Bool #

[View source]
def path_for?(module_id) : Path | Nil #

HACK: Retrieve the driver path from the module_id


[View source]
def remove_driver_manager(key) #

[View source]
def run_count : Count #

[View source]
def start(module_id : String, payload : String) #

[View source]
def stop(module_id : String) #

[View source]
def system_status : SystemStatus #

[View source]
def unload(module_id : String) #

Stop and unload the module from node


[View source]