public ExecutorAggregateStats deepCopy() { return new ExecutorAggregateStats(this); }
private static ExecutorAggregateStats thriftifyExecAggStats(String compId, String compType, Map m) { ExecutorSummary executorSummary = new ExecutorSummary(); List executor = (List) m.get(EXECUTOR_ID); executorSummary.set_executor_info(new ExecutorInfo(((Number) executor.get(0)).intValue(), ((Number) executor.get(1)).intValue())); executorSummary.set_component_id(compId); executorSummary.set_host((String) m.get(HOST)); executorSummary.set_port(getByKeyOr0(m, PORT).intValue()); int uptime = getByKeyOr0(m, ClientStatsUtil.UPTIME).intValue(); executorSummary.set_uptime_secs(uptime); ExecutorAggregateStats stats = new ExecutorAggregateStats(); stats.set_exec_summary(executorSummary); if (compType.equals(ClientStatsUtil.SPOUT)) { stats.set_stats(thriftifySpoutAggStats(m)); } else { stats.set_stats(thriftifyBoltAggStats(m)); } return stats; }
java.util.List<ExecutorAggregateStats> __this__exec_stats = new java.util.ArrayList<ExecutorAggregateStats>(other.exec_stats.size()); for (ExecutorAggregateStats other_element : other.exec_stats) { __this__exec_stats.add(new ExecutorAggregateStats(other_element));
for (int _i558 = 0; _i558 < _list556.size; ++_i558) _elem557 = new ExecutorAggregateStats(); _elem557.read(iprot); struct.exec_stats.add(_elem557);
for (int _i524 = 0; _i524 < _list522.size; ++_i524) _elem523 = new ExecutorAggregateStats(); _elem523.read(iprot); struct.exec_stats.add(_elem523);
public ExecutorAggregateStats deepCopy() { return new ExecutorAggregateStats(this); }
List<ExecutorAggregateStats> __this__exec_stats = new ArrayList<ExecutorAggregateStats>(other.exec_stats.size()); for (ExecutorAggregateStats other_element : other.exec_stats) { __this__exec_stats.add(new ExecutorAggregateStats(other_element));
for (int _i530 = 0; _i530 < _list528.size; ++_i530) _elem529 = new ExecutorAggregateStats(); _elem529.read(iprot); struct.exec_stats.add(_elem529);
for (int _i496 = 0; _i496 < _list494.size; ++_i496) _elem495 = new ExecutorAggregateStats(); _elem495.read(iprot); struct.exec_stats.add(_elem495);