MeshServiceOrchestrator

class MeshServiceOrchestrator(radioInterfaceService: RadioInterfaceService, serviceRepository: ServiceRepository, nodeManager: NodeManager, messageProcessor: MeshMessageProcessor, router: MeshRouter, serviceNotifications: MeshServiceNotifications, takServerManager: TAKServerManager, takMeshIntegration: TAKMeshIntegration, takPrefs: TakPrefs, databaseManager: DatabaseManager, connectionManager: MeshConnectionManager, dispatchers: CoroutineDispatchers)(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: RadioInterfaceService, serviceRepository: ServiceRepository, nodeManager: NodeManager, messageProcessor: MeshMessageProcessor, router: MeshRouter, serviceNotifications: MeshServiceNotifications, takServerManager: TAKServerManager, takMeshIntegration: TAKMeshIntegration, takPrefs: TakPrefs, databaseManager: DatabaseManager, connectionManager: MeshConnectionManager, dispatchers: CoroutineDispatchers)

Properties

Link copied to clipboard

Whether the orchestrator is currently running.

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.