NodeIdentity

data class NodeIdentity(val service: String, val node: String, val address: String?, val host: String, val bindHost: String, val serviceKey: String = WOW_SERVICE)

Who this node is: the service it belongs to, its node id and the address of its internal port, null while the port is not bound yet when the system chooses it (wow.internal.port=0): the node then learns it as host and the bound port (ServiceNode.bind).

bindHost is the interface the internal server binds: wow.internal.host when set (0.0.0.0 or :: for every interface), else the host the node advertises to its members, that of wow.node.address or host, so the unauthenticated internal port is not open on every interface by default. With neither set, host is the loopback address in a profile of wow.dev-profiles, and otherwise the address this host's name resolves to, refused when that is a public one.

Constructors

Link copied to clipboard
constructor(service: String, node: String, address: String?, host: String, bindHost: String, serviceKey: String = WOW_SERVICE)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The property that gave service: wow.service when it is set, else spring.application.name.

Functions

Link copied to clipboard
fun addressAt(port: Int): String

The address of the internal port bound at port: address when configured, else host and port (NodeAddress.of: an IPv6 literal in brackets).