@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 |
---|---|
String |
dumpMainInfo()
dump the main info of the WorkerNetAddress object.
|
boolean |
equals(Object o) |
String |
getContainerHost() |
int |
getDataPort() |
String |
getDomainSocketPath() |
String |
getHost() |
int |
getNettyDataPort() |
int |
getRpcPort() |
int |
getSecureRpcPort() |
int |
getWebPort() |
int |
hashCode() |
WorkerNetAddress |
setContainerHost(String containerHost) |
WorkerNetAddress |
setDataPort(int dataPort) |
WorkerNetAddress |
setDomainSocketPath(String domainSocketPath) |
WorkerNetAddress |
setHost(String host) |
WorkerNetAddress |
setNettyDataPort(int nettyDataPort) |
WorkerNetAddress |
setRpcPort(int rpcPort) |
WorkerNetAddress |
setSecureRpcPort(int secureRpcPort) |
WorkerNetAddress |
setWebPort(int webPort) |
String |
toString() |
public static final WorkerNetAddress DUMMY
public WorkerNetAddress()
WorkerNetAddress
.public int getSecureRpcPort()
public String getHost()
public String getContainerHost()
public int getRpcPort()
public int getDataPort()
public int getNettyDataPort()
public int getWebPort()
public String getDomainSocketPath()
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 setNettyDataPort(int nettyDataPort)
nettyDataPort
- the netty data port to usepublic WorkerNetAddress setWebPort(int webPort)
webPort
- the web port to usepublic WorkerNetAddress setSecureRpcPort(int secureRpcPort)
secureRpcPort
- the secure rpc port port to usepublic WorkerNetAddress setDomainSocketPath(String domainSocketPath)
domainSocketPath
- the domain socket pathpublic String dumpMainInfo()
Copyright © 2023. All Rights Reserved.