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 TaskLocation
create(String host, int port, int tlsPort)
static TaskLocation
create(String host, int port, int tlsPort, boolean isTls)
static TaskLocation
create(String host, int port, int tlsPort, boolean isTls, String k8sPodName)
boolean
equals(Object o)
String
getHost()
String
getK8sPodName()
String
getLocation()
int
getPort()
int
getTlsPort()
int
hashCode()
URL
makeURL(String encodedPathAndQueryString)
String
toString()
static TaskLocation
unknown()
-
-
-
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
-
-