Package org.apache.druid.indexer
Class TaskLocation
- java.lang.Object
-
- org.apache.druid.indexer.TaskLocation
-
public class TaskLocation extends Object
-
-
Constructor Summary
Constructors Constructor Description TaskLocation(String host, int port, int tlsPort, String k8sPodName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskLocationcreate(String host, int port, int tlsPort)static TaskLocationcreate(String host, int port, int tlsPort, boolean isTls)static TaskLocationcreate(String host, int port, int tlsPort, boolean isTls, String k8sPodName)booleanequals(Object o)StringgetHost()StringgetK8sPodName()StringgetLocation()intgetPort()intgetTlsPort()inthashCode()URLmakeURL(String encodedPathAndQueryString)StringtoString()static TaskLocationunknown()
-
-
-
Method Detail
-
create
public static TaskLocation create(String host, int port, int tlsPort)
-
create
public static TaskLocation create(String host, int port, int tlsPort, boolean isTls)
-
create
public static TaskLocation create(String host, int port, int tlsPort, boolean isTls, @Nullable String k8sPodName)
-
unknown
public static TaskLocation unknown()
-
getPort
public int getPort()
-
getTlsPort
public int getTlsPort()
-
makeURL
public URL makeURL(String encodedPathAndQueryString) throws MalformedURLException
- Throws:
MalformedURLException
-
-