PlaceOS::Core::ModuleManager
Inherits PlaceOS::Core::ProcessCheck < PlaceOS::Resource < Reference < Object
Constants
REDIS_VERSION_CHANNEL = "cluster/cluster_version"
Redis channel that cluster leader publishes stable cluster versions to
Constructors
Class methods
execute_payload(method : String | Symbol, args : Enumerable | Nil = nil, named_args : Hash | NamedTuple | Nil = nil)
SourceRoute via edge_id if the Module is on an Edge, otherwise the Module's id
start_payload(mod : Model::Module)
Sourceuri
SourceInstance methods
clustering
Sourcediscovery
Sourceload_module(mod : Model::Module, rendezvous_hash : RendezvousHash = discovery.rendezvous)
Load the module if current node is responsible
manage_edge(*args, **options)
Sourcemanage_edge(*args, **options, &)
Sourceon_managed_edge?(mod : Model::Module)
Determine if a module is an edge module and allocated to the current core node.
own_node?(*args, **options)
Sourceown_node?(*args, **options, &)
Sourcepath_for?(*args, **options)
Sourcepath_for?(*args, **options, &)
SourceDelegate Model::Module to a ProcessManager, either local or on an edge
process_resource(action : Resource::Action, resource mod : Model::Module) : Resource::Result
SourceStops modules on stale driver and starts them on the new driver
Returns the stale driver path
restart_module(mod : Model::Module)
SourceRun through modules and load to a stable state.
Uses a semaphore to ensure intermediary cluster events don't trigger stabilization.
start_module(mod : Model::Module)
Sourcestarted?
Sourcestop
Source