public ComponentAggregateStats deepCopy() { return new ComponentAggregateStats(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); } } }
private static ComponentAggregateStats thriftifySpoutAggStats(Map m) { ComponentAggregateStats stats = new ComponentAggregateStats(); stats.set_type(ComponentType.SPOUT); stats.set_last_error((ErrorInfo) m.get(LAST_ERROR)); thriftifyCommonAggStats(stats, m); SpoutAggregateStats spoutAggStats = new SpoutAggregateStats(); spoutAggStats.set_complete_latency_ms(getByKeyOr0(m, COMP_LATENCY).doubleValue()); SpecificAggregateStats specificStats = SpecificAggregateStats.spout(spoutAggStats); stats.set_specific_stats(specificStats); return stats; }
ComponentAggregateStats __this__window_to_stats_copy_value = new ComponentAggregateStats(other_element_value); ComponentAggregateStats __this__gsid_to_input_stats_copy_value = new ComponentAggregateStats(other_element_value); ComponentAggregateStats __this__sid_to_output_stats_copy_value = new ComponentAggregateStats(other_element_value);
private static ComponentAggregateStats thriftifyBoltAggStats(Map m) { ComponentAggregateStats stats = new ComponentAggregateStats(); stats.set_type(ComponentType.BOLT); stats.set_last_error((ErrorInfo) m.get(LAST_ERROR)); thriftifyCommonAggStats(stats, m); BoltAggregateStats boltAggStats = new BoltAggregateStats(); boltAggStats.set_execute_latency_ms(getByKeyOr0(m, EXEC_LATENCY).doubleValue()); boltAggStats.set_process_latency_ms(getByKeyOr0(m, PROC_LATENCY).doubleValue()); boltAggStats.set_executed(getByKeyOr0(m, EXECUTED).longValue()); boltAggStats.set_capacity(getByKeyOr0(m, CAPACITY).doubleValue()); SpecificAggregateStats specificStats = SpecificAggregateStats.bolt(boltAggStats); stats.set_specific_stats(specificStats); return stats; }
ComponentAggregateStats __this__id_to_spout_agg_stats_copy_value = new ComponentAggregateStats(other_element_value); ComponentAggregateStats __this__id_to_bolt_agg_stats_copy_value = new ComponentAggregateStats(other_element_value);
_val546 = new ComponentAggregateStats(); _val546.read(iprot); struct.window_to_stats.put(_key545, _val546); _val550 = new ComponentAggregateStats(); _val550.read(iprot); struct.gsid_to_input_stats.put(_key549, _val550); _val554 = new ComponentAggregateStats(); _val554.read(iprot); struct.sid_to_output_stats.put(_key553, _val554);
_val501 = new ComponentAggregateStats(); _val501.read(iprot); struct.id_to_spout_agg_stats.put(_key500, _val501); _val505 = new ComponentAggregateStats(); _val505.read(iprot); struct.id_to_bolt_agg_stats.put(_key504, _val505);
case 2: // STATS if (schemeField.type == org.apache.storm.thrift.protocol.TType.STRUCT) { struct.stats = new ComponentAggregateStats(); struct.stats.read(iprot); struct.set_stats_isSet(true);
_val512 = new ComponentAggregateStats(); _val512.read(iprot); struct.window_to_stats.put(_key511, _val512); _val516 = new ComponentAggregateStats(); _val516.read(iprot); struct.gsid_to_input_stats.put(_key515, _val516); _val520 = new ComponentAggregateStats(); _val520.read(iprot); struct.sid_to_output_stats.put(_key519, _val520);
_val484 = new ComponentAggregateStats(); _val484.read(iprot); struct.id_to_spout_agg_stats.put(_key483, _val484); _val488 = new ComponentAggregateStats(); _val488.read(iprot); struct.id_to_bolt_agg_stats.put(_key487, _val488);
public ComponentAggregateStats deepCopy() { return new ComponentAggregateStats(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.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); } } }
ComponentAggregateStats __this__window_to_stats_copy_value = new ComponentAggregateStats(other_element_value); ComponentAggregateStats __this__gsid_to_input_stats_copy_value = new ComponentAggregateStats(other_element_value); ComponentAggregateStats __this__sid_to_output_stats_copy_value = new ComponentAggregateStats(other_element_value);
ComponentAggregateStats __this__id_to_spout_agg_stats_copy_value = new ComponentAggregateStats(other_element_value); ComponentAggregateStats __this__id_to_bolt_agg_stats_copy_value = new ComponentAggregateStats(other_element_value);
_val518 = new ComponentAggregateStats(); _val518.read(iprot); struct.window_to_stats.put(_key517, _val518); _val522 = new ComponentAggregateStats(); _val522.read(iprot); struct.gsid_to_input_stats.put(_key521, _val522); _val526 = new ComponentAggregateStats(); _val526.read(iprot); struct.sid_to_output_stats.put(_key525, _val526);
_val473 = new ComponentAggregateStats(); _val473.read(iprot); struct.id_to_spout_agg_stats.put(_key472, _val473); _val477 = new ComponentAggregateStats(); _val477.read(iprot); struct.id_to_bolt_agg_stats.put(_key476, _val477);
case 2: // STATS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.stats = new ComponentAggregateStats(); struct.stats.read(iprot); struct.set_stats_isSet(true);