List<WorkerMetricData> wrkMetrLstFromTopo = topoMetr.get_worker_metric_list();
if (wrkMetrLstFromTopo == null) return;
for (WorkerMetricData wrkMetrData : wrkMetrLstFromTopo) {
if (wrkMetrData.get_hostname().equals(host) ||
wrkMetrData.get_hostname().equals(ip)) {
WorkerMetrics workerMetrics = new WorkerMetrics();
workerMetrics.updateWorkerMetricData(wrkMetrData);
workermetrics.add(workerMetrics);
}
}
}
}