Package org.apache.druid.rpc
Class ServiceLocation
- java.lang.Object
-
- org.apache.druid.rpc.ServiceLocation
-
public class ServiceLocation extends Object
Represents a service location at a particular point in time.
-
-
Constructor Summary
Constructors Constructor Description ServiceLocation(String host, int plaintextPort, int tlsPort, String basePath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ServiceLocationfromDruidNode(DruidNode druidNode)static ServiceLocationfromDruidServerMetadata(DruidServerMetadata druidServerMetadata)StringgetBasePath()StringgetHost()intgetPlaintextPort()intgetTlsPort()inthashCode()StringtoString()
-
-
-
Method Detail
-
fromDruidNode
public static ServiceLocation fromDruidNode(DruidNode druidNode)
-
fromDruidServerMetadata
public static ServiceLocation fromDruidServerMetadata(DruidServerMetadata druidServerMetadata)
-
getHost
public String getHost()
-
getPlaintextPort
public int getPlaintextPort()
-
getTlsPort
public int getTlsPort()
-
getBasePath
public String getBasePath()
-
-