@PublicApi @NotThreadSafe public final class WorkerNetAddress extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static WorkerNetAddress |
DUMMY |
Constructor and Description |
---|
WorkerNetAddress()
Creates a new instance of
WorkerNetAddress . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getContainerHost() |
int |
getDataPort() |
String |
getDomainSocketPath() |
String |
getHost() |
int |
getRpcPort() |
TieredIdentity |
getTieredIdentity() |
int |
getWebPort() |
int |
hashCode() |
WorkerNetAddress |
setContainerHost(String containerHost) |
WorkerNetAddress |
setDataPort(int dataPort) |
WorkerNetAddress |
setDomainSocketPath(String domainSocketPath) |
WorkerNetAddress |
setHost(String host) |
WorkerNetAddress |
setRpcPort(int rpcPort) |
WorkerNetAddress |
setTieredIdentity(TieredIdentity tieredIdentity) |
WorkerNetAddress |
setWebPort(int webPort) |
String |
toString() |
public static final WorkerNetAddress DUMMY
public WorkerNetAddress()
WorkerNetAddress
.public String getHost()
public String getContainerHost()
public int getRpcPort()
public int getDataPort()
public int getWebPort()
public String getDomainSocketPath()
public TieredIdentity getTieredIdentity()
public WorkerNetAddress setHost(String host)
host
- the host to usepublic WorkerNetAddress setContainerHost(String containerHost)
containerHost
- the host of node, if running in a containerpublic WorkerNetAddress setRpcPort(int rpcPort)
rpcPort
- the rpc port to usepublic WorkerNetAddress setDataPort(int dataPort)
dataPort
- the data port to usepublic WorkerNetAddress setWebPort(int webPort)
webPort
- the web port to usepublic WorkerNetAddress setDomainSocketPath(String domainSocketPath)
domainSocketPath
- the domain socket pathpublic WorkerNetAddress setTieredIdentity(TieredIdentity tieredIdentity)
tieredIdentity
- the tiered identityCopyright © 2023. All Rights Reserved.