Documentation Core¶
-
class
motey.core.
Core
(logger, capability_repository, nodes_repository, valmanager, inter_node_orchestrator, communication_manager, capability_engine, as_daemon=True)[source]¶ This module provides the core functionality of Motey. It can be executed as a daemon service or can be executed in foreground. It will start an API webserver and a MQTTServer which can be configured via the config.ini file. The core will also start all the necessary components like the VALManager, the InterNodeOrchestrator and the HardwareEventEngine. After it is started via self.start() it will be executed until self.stop() is executed.
-
run
()[source]¶ The method is the main app loop. It starts the
Communication Manager Components
and it will be executed untilself.stop()
is executed.
-
start
()[source]¶ Start the core component. At first clean up config if necessary. If self.as_daemon is set to True, the component will be started as a daemon services. It will use the path to the pid which is configured in the config.ini. If self.as_daemon is set to False, the component will be executed in foreground.
-