ServiceNodeLifecycle

class ServiceNodeLifecycle(node: ServiceNode, events: ApplicationEventPublisher, standby: Boolean = false, availability: () -> ApplicationAvailability?) : SmartLifecycle

Starts the node once its backends and internal port are up, and stops it once the public server has stopped: a stop reports the application not ready first, when nothing did (a host without a public server), then runs ServiceNode.stop apart from the thread that closes the context, which waits for it at most the phase's timeout.

Constructors

Link copied to clipboard
constructor(node: ServiceNode, events: ApplicationEventPublisher, standby: Boolean = false, availability: () -> ApplicationAvailability?)

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()
open override fun stop(callback: Runnable)