InternalServerLifecycle

class InternalServerLifecycle(server: InternalPort, bound: (port: Int) -> Unit = {}) : SmartLifecycle

Serves the internal port from before the node starts until after it stops; once the port is bound, tells bound the port it is bound at, so a node whose port the system chose learns its address (ServiceNode.bind).

Constructors

Link copied to clipboard
constructor(server: InternalPort, bound: (port: Int) -> Unit = {})

Properties

Link copied to clipboard
open override val isRunning: Boolean
Link copied to clipboard
open override val phase: Int

Functions

Link copied to clipboard
open override fun getPhase(): Int
Link copied to clipboard
open override fun isRunning(): Boolean
Link copied to clipboard
open override fun start()
Link copied to clipboard
open override fun stop()