Json Node As Service Node
data class JsonNodeAsServiceNode(val root: JsonNode, val ip: String = root["ip"].textValue(), val port: Int = root["port"].intValue(), val weight: Double = root["weight"].doubleValue(), val healthy: Boolean = root["healthy"].booleanValue(), val enabled: Boolean = root["enabled"].booleanValue(), val ephemeral: Boolean = root["ephemeral"].booleanValue(), val ingressLess: Boolean = !healthy || weight <= 0) : ServiceNode
Author
CJ
Constructors
Link copied to clipboard
constructor(root: JsonNode, ip: String = root["ip"].textValue(), port: Int = root["port"].intValue(), weight: Double = root["weight"].doubleValue(), healthy: Boolean = root["healthy"].booleanValue(), enabled: Boolean = root["enabled"].booleanValue(), ephemeral: Boolean = root["ephemeral"].booleanValue(), ingressLess: Boolean = !healthy || weight <= 0)