public ExecutorSummary deepCopy() { return new ExecutorSummary(this); }
/** * Performs a deep copy on <i>other</i>. */ public ExecutorAggregateStats(ExecutorAggregateStats other) { if (other.is_set_exec_summary()) { this.exec_summary = new ExecutorSummary(other.exec_summary); } if (other.is_set_stats()) { this.stats = new ComponentAggregateStats(other.stats); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, ExecutorAggregateStats struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.exec_summary = new ExecutorSummary(); struct.exec_summary.read(iprot); struct.set_exec_summary_isSet(true); } if (incoming.get(1)) { struct.stats = new ComponentAggregateStats(); struct.stats.read(iprot); struct.set_stats_isSet(true); } } }
java.util.List<ExecutorSummary> __this__executors = new java.util.ArrayList<ExecutorSummary>(other.executors.size()); for (ExecutorSummary other_element : other.executors) { __this__executors.add(new ExecutorSummary(other_element));
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; }
heartbeat = Collections.emptyMap(); ExecutorSummary summ = new ExecutorSummary(execInfo, common.taskToComponent.get(execInfo.get_task_start()), nodeToHost.get(ni.get_node()), ni.get_port_iterator().next().intValue(),
for (int _i384 = 0; _i384 < _list382.size; ++_i384) _elem383 = new ExecutorSummary(); _elem383.read(iprot); struct.executors.add(_elem383);
case 1: // EXEC_SUMMARY if (schemeField.type == org.apache.storm.thrift.protocol.TType.STRUCT) { struct.exec_summary = new ExecutorSummary(); struct.exec_summary.read(iprot); struct.set_exec_summary_isSet(true);
for (int _i362 = 0; _i362 < _list360.size; ++_i362) _elem361 = new ExecutorSummary(); _elem361.read(iprot); struct.executors.add(_elem361);
public ExecutorSummary deepCopy() { return new ExecutorSummary(this); }
/** * Performs a deep copy on <i>other</i>. */ public ExecutorAggregateStats(ExecutorAggregateStats other) { if (other.is_set_exec_summary()) { this.exec_summary = new ExecutorSummary(other.exec_summary); } if (other.is_set_stats()) { this.stats = new ComponentAggregateStats(other.stats); } }
List<ExecutorSummary> __this__executors = new ArrayList<ExecutorSummary>(other.executors.size()); for (ExecutorSummary other_element : other.executors) { __this__executors.add(new ExecutorSummary(other_element));
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ExecutorAggregateStats struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.exec_summary = new ExecutorSummary(); struct.exec_summary.read(iprot); struct.set_exec_summary_isSet(true); } if (incoming.get(1)) { struct.stats = new ComponentAggregateStats(); struct.stats.read(iprot); struct.set_stats_isSet(true); } } }
for (int _i356 = 0; _i356 < _list354.size; ++_i356) _elem355 = new ExecutorSummary(); _elem355.read(iprot); struct.executors.add(_elem355);
case 1: // EXEC_SUMMARY if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.exec_summary = new ExecutorSummary(); struct.exec_summary.read(iprot); struct.set_exec_summary_isSet(true);
for (int _i334 = 0; _i334 < _list332.size; ++_i334) _elem333 = new ExecutorSummary(); _elem333.read(iprot); struct.executors.add(_elem333);