public final class WorkerInfoUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
static WorkerInfo |
createWorkerInfo(int workerID,
java.lang.String workerIP,
int workerPort) |
static WorkerInfo |
createWorkerInfo(int workerID,
java.lang.String workerIP,
int workerPort,
NodeInfo nodeInfo) |
static WorkerInfo |
createWorkerInfo(int workerID,
java.lang.String workerIP,
int workerPort,
NodeInfo nodeInfo,
JobAPI.ComputeResource computeResource) |
static WorkerInfo |
createWorkerInfo(int workerID,
java.lang.String workerIP,
int workerPort,
NodeInfo nodeInfo,
JobAPI.ComputeResource computeResource,
java.util.Map<java.lang.String,java.lang.Integer> additionalPorts) |
static WorkerInfo |
updateWorkerID(WorkerInfo workerInfo,
int workerID) |
static java.lang.String |
workerListAsString(java.util.List<WorkerInfo> workers)
convert the worker list to string for logging purposes
|
public static WorkerInfo createWorkerInfo(int workerID, java.lang.String workerIP, int workerPort)
public static WorkerInfo createWorkerInfo(int workerID, java.lang.String workerIP, int workerPort, NodeInfo nodeInfo)
public static WorkerInfo createWorkerInfo(int workerID, java.lang.String workerIP, int workerPort, NodeInfo nodeInfo, JobAPI.ComputeResource computeResource)
public static WorkerInfo createWorkerInfo(int workerID, java.lang.String workerIP, int workerPort, NodeInfo nodeInfo, JobAPI.ComputeResource computeResource, java.util.Map<java.lang.String,java.lang.Integer> additionalPorts)
public static WorkerInfo updateWorkerID(WorkerInfo workerInfo, int workerID)
public static java.lang.String workerListAsString(java.util.List<WorkerInfo> workers)