public final class WorkerResourceUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
LOG |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getDistinctNodeIPs(java.util.List<JobMasterAPI.WorkerInfo> workerList) |
static java.util.List<JobMasterAPI.WorkerInfo> |
getWorkersOnANode(java.lang.String nodeIP,
java.util.List<JobMasterAPI.WorkerInfo> workerList)
get the list of WorkerInfo objects on the given node
|
static java.util.Map<java.lang.String,java.util.List<JobMasterAPI.WorkerInfo>> |
getWorkersPerNode(java.util.List<JobMasterAPI.WorkerInfo> workerList) |
public static java.util.Map<java.lang.String,java.util.List<JobMasterAPI.WorkerInfo>> getWorkersPerNode(java.util.List<JobMasterAPI.WorkerInfo> workerList)
public static java.util.List<java.lang.String> getDistinctNodeIPs(java.util.List<JobMasterAPI.WorkerInfo> workerList)
public static java.util.List<JobMasterAPI.WorkerInfo> getWorkersOnANode(java.lang.String nodeIP, java.util.List<JobMasterAPI.WorkerInfo> workerList)