MeshServiceOrchestrator

class MeshServiceOrchestrator(radioInterfaceService: ERROR CLASS: Symbol not found for RadioInterfaceService, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository, packetHandler: ERROR CLASS: Symbol not found for PacketHandler, nodeManager: ERROR CLASS: Symbol not found for NodeManager, messageProcessor: ERROR CLASS: Symbol not found for MeshMessageProcessor, commandSender: ERROR CLASS: Symbol not found for CommandSender, connectionManager: ERROR CLASS: Symbol not found for MeshConnectionManager, router: ERROR CLASS: Symbol not found for MeshRouter, serviceNotifications: ERROR CLASS: Symbol not found for MeshServiceNotifications)(source)

Platform-agnostic orchestrator for the mesh service lifecycle.

Extracts the startup wiring previously embedded in Android's MeshService.onCreate() into a reusable component. Both Android's foreground Service and the Desktop main() function can use this to start/stop the mesh service graph.

All injected dependencies are commonMain interfaces with real implementations in core:data.

Constructors

Link copied to clipboard
constructor(radioInterfaceService: ERROR CLASS: Symbol not found for RadioInterfaceService, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository, packetHandler: ERROR CLASS: Symbol not found for PacketHandler, nodeManager: ERROR CLASS: Symbol not found for NodeManager, messageProcessor: ERROR CLASS: Symbol not found for MeshMessageProcessor, commandSender: ERROR CLASS: Symbol not found for CommandSender, connectionManager: ERROR CLASS: Symbol not found for MeshConnectionManager, router: ERROR CLASS: Symbol not found for MeshRouter, serviceNotifications: ERROR CLASS: Symbol not found for MeshServiceNotifications)

Properties

Link copied to clipboard

Whether the orchestrator is currently running.

Link copied to clipboard
var serviceScope: ERROR CLASS: Symbol not found for CoroutineScope??

The coroutine scope for the service. Available after start is called.

Functions

Link copied to clipboard
fun start()

Starts the mesh service components and wires up data flows.

Link copied to clipboard
fun stop()

Stops the mesh service components and cancels the coroutine scope.