Package org.apache.druid.server
Class DruidNode
java.lang.Object
org.apache.druid.server.DruidNode
-
Constructor Summary
ConstructorsConstructorDescriptionDruidNode(String serviceName, String host, boolean bindOnHost, Integer plaintextPort, Integer tlsPort, boolean enablePlaintextPort, boolean enableTlsPort) DruidNode(String serviceName, String host, boolean bindOnHost, Integer plaintextPort, Integer port, Integer tlsPort, Boolean enablePlaintextPort, boolean enableTlsPort) host = null , port = null -> host = _default_, port = -1 host = "abc:123", port = null -> host = abc, port = 123 host = "abc:fff", port = null -> throw IAE (invalid ipv6 host) host = "2001:db8:85a3::8a2e:370:7334", port = null -> host = 2001:db8:85a3::8a2e:370:7334, port = _auto_ host = "[2001:db8:85a3::8a2e:370:7334]", port = null -> host = 2001:db8:85a3::8a2e:370:7334, port = _auto_ host = "abc" , port = null -> host = abc, port = _auto_ host = "abc" , port = 123 -> host = abc, port = 123 host = "abc:123 , port = 123 -> host = abc, port = 123 host = "abc:123 , port = 456 -> throw IAE (conflicting port) host = "abc:fff , port = 456 -> throw IAE (invalid ipv6 host) host = "[2001:db8:85a3::8a2e:370:7334]:123", port = null -> host = 2001:db8:85a3::8a2e:370:7334, port = 123 host = "[2001:db8:85a3::8a2e:370:7334]", port = 123 -> host = 2001:db8:85a3::8a2e:370:7334, port = 123 host = "2001:db8:85a3::8a2e:370:7334", port = 123 -> host = 2001:db8:85a3::8a2e:370:7334, port = 123 host = null , port = 123 -> host = _default_, port = 123 -
Method Summary
-
Constructor Details
-
DruidNode
-
DruidNode
public DruidNode(String serviceName, String host, boolean bindOnHost, Integer plaintextPort, Integer port, Integer tlsPort, Boolean enablePlaintextPort, boolean enableTlsPort) host = null , port = null -> host = _default_, port = -1 host = "abc:123", port = null -> host = abc, port = 123 host = "abc:fff", port = null -> throw IAE (invalid ipv6 host) host = "2001:db8:85a3::8a2e:370:7334", port = null -> host = 2001:db8:85a3::8a2e:370:7334, port = _auto_ host = "[2001:db8:85a3::8a2e:370:7334]", port = null -> host = 2001:db8:85a3::8a2e:370:7334, port = _auto_ host = "abc" , port = null -> host = abc, port = _auto_ host = "abc" , port = 123 -> host = abc, port = 123 host = "abc:123 , port = 123 -> host = abc, port = 123 host = "abc:123 , port = 456 -> throw IAE (conflicting port) host = "abc:fff , port = 456 -> throw IAE (invalid ipv6 host) host = "[2001:db8:85a3::8a2e:370:7334]:123", port = null -> host = 2001:db8:85a3::8a2e:370:7334, port = 123 host = "[2001:db8:85a3::8a2e:370:7334]", port = 123 -> host = 2001:db8:85a3::8a2e:370:7334, port = 123 host = "2001:db8:85a3::8a2e:370:7334", port = 123 -> host = 2001:db8:85a3::8a2e:370:7334, port = 123 host = null , port = 123 -> host = _default_, port = 123
-
-
Method Details
-
getServiceName
-
getHost
-
isBindOnHost
public boolean isBindOnHost() -
getPlaintextPort
public int getPlaintextPort() -
isEnablePlaintextPort
public boolean isEnablePlaintextPort() -
isEnableTlsPort
public boolean isEnableTlsPort() -
getTlsPort
public int getTlsPort() -
withService
-
getServiceScheme
-
getHostAndPort
Returns host and port together as something that can be used as part of a URI. -
getHostAndTlsPort
-
getPortToUse
public int getPortToUse() -
getHostAndPortToUse
-
getUriToUse
-
getDefaultHost
-
equals
-
hashCode
public int hashCode() -
toString
-