Companion

Properties

Link copied to clipboard

Spring Boot's application name, the service's name when WOW_SERVICE is not set.

Link copied to clipboard
const val LOOPBACK: String

The address the internal port binds and advertises by default in a profile of wow.dev-profiles.

Link copied to clipboard
const val WOW_SERVICE: String

The property that names the service before Spring's application name.

Functions

Link copied to clipboard

Whether address is reachable from outside a private network: none of the loopback, private (10/8, 172.16/12, 192.168/16), link-local, shared (100.64/10, carrier-grade NAT) or IPv6 unique-local (fc00::/7) and site-local addresses, nor the wildcard.

Link copied to clipboard
fun of(properties: WowProperties, environment: Environment, local: InetAddress = InetAddress.getLocalHost()): NodeIdentity

The identity properties configure: wow.service, else spring.application.name; wow.node.id, else the host name with a random suffix, so a restarted node is a new member; wow.node.address, else the internal server's bind address (this host's when it binds every interface) and wow.internal.port, or, when that port is 0, the port the internal server is bound at, known once it is, written as NodeAddress.of writes an address ([::1]:9191 for an IPv6 host); the bindHost, wow.internal.host, else the host of that member address. A wow.node.address that is a bare IPv6 literal with a port fails.