Package com.linkedin.venice.meta
Class Instance
java.lang.Object
com.linkedin.venice.meta.Instance
Class defines the Instance in Venice.
// TODO: Bad name. Too generic. Let's find a better one.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Instance
fromHostAndPort
(String hostName, int port) static Instance
fromNodeId
(String nodeId) int
int
getHost()
getHostUrl
(boolean isSSL) int
getPort()
int
getUrl()
Deprecated.getUrl
(boolean https) Convenience method for getting a host and port based url.int
hashCode()
toString()
-
Constructor Details
-
Instance
-
Instance
-
Instance
-
-
Method Details
-
fromHostAndPort
-
getHostUrl
-
fromNodeId
-
getNodeId
-
getHost
-
getPort
public int getPort() -
getSslPort
public int getSslPort() -
getGrpcPort
public int getGrpcPort() -
getGrpcSslPort
public int getGrpcSslPort() -
getGrpcUrl
-
getGrpcSslUrl
-
getUrl
Convenience method for getting a host and port based url. Wraps IPv6 host strings in square brackets- Parameters:
https
- sets the scheme: false for http, true for https- Returns:
- http(s):// + host + : + port
-
getUrl
Deprecated. -
hashCode
public int hashCode() -
equals
-
toString
-