JsonNodeAsServiceNode

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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val ingressLess: Boolean

是否处在没有流量进入的状态

Link copied to clipboard
open override val ip: String
Link copied to clipboard
open override val port: Int
Link copied to clipboard
val root: JsonNode
Link copied to clipboard

Functions

Link copied to clipboard
fun work(): Boolean