Class WorkerInfo
- java.lang.Object
-
- com.alibaba.graphscope.graph.comm.WorkerInfo
-
public class WorkerInfo extends Object
Contains information uniquely identify one worker(process) from others.
-
-
Constructor Summary
Constructors Constructor Description WorkerInfo(int workerId, int workerNum, String hostNameOrIp, int port, String[] dstHostNameOrIps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getDstHostNameOrIps()
String
getHost()
Return the ip/hostname to which the client should connect.int
getInitPort()
Return the port client should connect to.int
getWorkerId()
int
getWorkerNum()
void
setWorkerId(int workerId)
void
setWorkerNum(int workerNum)
-
-
-
Method Detail
-
getWorkerId
public int getWorkerId()
-
setWorkerId
public void setWorkerId(int workerId)
-
getWorkerNum
public int getWorkerNum()
-
setWorkerNum
public void setWorkerNum(int workerNum)
-
getHost
public String getHost()
Return the ip/hostname to which the client should connect.- Returns:
- hostname or ip
-
getInitPort
public int getInitPort()
Return the port client should connect to.- Returns:
- the port
-
getDstHostNameOrIps
public String[] getDstHostNameOrIps()
-
-