public BoltStats deepCopy() { return new BoltStats(this); }
public Object getFieldValue(_Fields field) { switch (field) { case ACKED: return get_acked(); case FAILED: return get_failed(); case PROCESS_MS_AVG: return get_process_ms_avg(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof BoltStats) return this.equals((BoltStats)that); return false; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case ACKED: return is_set_acked(); case FAILED: return is_set_failed(); case PROCESS_MS_AVG: return is_set_process_ms_avg(); } throw new IllegalStateException(); }
public void validate() throws org.apache.thrift7.TException { // check for required fields if (!is_set_acked()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'acked' is unset! Struct:" + toString()); } if (!is_set_failed()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'failed' is unset! Struct:" + toString()); } if (!is_set_process_ms_avg()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'process_ms_avg' is unset! Struct:" + toString()); } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case ACKED: return is_set_acked(); case FAILED: return is_set_failed(); case PROCESS_MS_AVG: return is_set_process_ms_avg(); case EXECUTED: return is_set_executed(); case EXECUTE_MS_AVG: return is_set_execute_ms_avg(); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case ACKED: return get_acked(); case FAILED: return get_failed(); case PROCESS_MS_AVG: return get_process_ms_avg(); case EXECUTED: return get_executed(); case EXECUTE_MS_AVG: return get_execute_ms_avg(); } throw new IllegalStateException(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_acked()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'acked' is unset! Struct:" + toString()); } if (!is_set_failed()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'failed' is unset! Struct:" + toString()); } if (!is_set_process_ms_avg()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'process_ms_avg' is unset! Struct:" + toString()); } if (!is_set_executed()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'executed' is unset! Struct:" + toString()); } if (!is_set_execute_ms_avg()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'execute_ms_avg' is unset! Struct:" + toString()); } }
: bs.get_acked().entrySet()) { Map<String, Long> ackedMap = new HashMap<>(); : bs.get_failed().entrySet()) { Map<String, Long> failedMap = new HashMap<>(); : bs.get_executed().entrySet()) { Map<String, Long> executedMap = new HashMap<>(); : bs.get_execute_ms_avg().entrySet()) { Map<String, Double> executedMap = new HashMap<>(); : bs.get_process_ms_avg().entrySet()) { Map<String, Double> processMap = new HashMap<>();
public boolean equals(BoltStats that) { if (that == null) return false; boolean this_present_acked = true && this.is_set_acked(); boolean that_present_acked = true && that.is_set_acked(); if (this_present_acked || that_present_acked) { if (!(this_present_acked && that_present_acked)) return false; if (!this.acked.equals(that.acked)) return false; } boolean this_present_failed = true && this.is_set_failed(); boolean that_present_failed = true && that.is_set_failed(); if (this_present_failed || that_present_failed) { if (!(this_present_failed && that_present_failed)) return false; if (!this.failed.equals(that.failed)) return false; } boolean this_present_process_ms_avg = true && this.is_set_process_ms_avg(); boolean that_present_process_ms_avg = true && that.is_set_process_ms_avg(); if (this_present_process_ms_avg || that_present_process_ms_avg) { if (!(this_present_process_ms_avg && that_present_process_ms_avg)) return false; if (!this.process_ms_avg.equals(that.process_ms_avg)) return false; } return true; }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_acked = true && (is_set_acked()); builder.append(present_acked); if (present_acked) builder.append(acked); boolean present_failed = true && (is_set_failed()); builder.append(present_failed); if (present_failed) builder.append(failed); boolean present_process_ms_avg = true && (is_set_process_ms_avg()); builder.append(present_process_ms_avg); if (present_process_ms_avg) builder.append(process_ms_avg); boolean present_executed = true && (is_set_executed()); builder.append(present_executed); if (present_executed) builder.append(executed); boolean present_execute_ms_avg = true && (is_set_execute_ms_avg()); builder.append(present_execute_ms_avg); if (present_execute_ms_avg) builder.append(execute_ms_avg); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_acked = true && (is_set_acked()); builder.append(present_acked); if (present_acked) builder.append(acked); boolean present_failed = true && (is_set_failed()); builder.append(present_failed); if (present_failed) builder.append(failed); boolean present_process_ms_avg = true && (is_set_process_ms_avg()); builder.append(present_process_ms_avg); if (present_process_ms_avg) builder.append(process_ms_avg); return builder.toHashCode(); }
public TaskSpecificStats getThirftstats() { return TaskSpecificStats.bolt(new BoltStats(get_acked(), get_fail(), get_process_latencies())); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof BoltStats) return this.equals((BoltStats)that); return false; }
return false; boolean this_present_acked = true && this.is_set_acked(); boolean that_present_acked = true && that.is_set_acked(); if (this_present_acked || that_present_acked) { if (!(this_present_acked && that_present_acked)) boolean this_present_failed = true && this.is_set_failed(); boolean that_present_failed = true && that.is_set_failed(); if (this_present_failed || that_present_failed) { if (!(this_present_failed && that_present_failed)) boolean this_present_process_ms_avg = true && this.is_set_process_ms_avg(); boolean that_present_process_ms_avg = true && that.is_set_process_ms_avg(); if (this_present_process_ms_avg || that_present_process_ms_avg) { if (!(this_present_process_ms_avg && that_present_process_ms_avg)) boolean this_present_executed = true && this.is_set_executed(); boolean that_present_executed = true && that.is_set_executed(); if (this_present_executed || that_present_executed) { if (!(this_present_executed && that_present_executed)) boolean this_present_execute_ms_avg = true && this.is_set_execute_ms_avg(); boolean that_present_execute_ms_avg = true && that.is_set_execute_ms_avg(); if (this_present_execute_ms_avg || that_present_execute_ms_avg) { if (!(this_present_execute_ms_avg && that_present_execute_ms_avg))
BoltStats typedOther = (BoltStats)other; lastComparison = Boolean.valueOf(is_set_acked()).compareTo(typedOther.is_set_acked()); if (lastComparison != 0) { return lastComparison; if (is_set_acked()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.acked, typedOther.acked); if (lastComparison != 0) { lastComparison = Boolean.valueOf(is_set_failed()).compareTo(typedOther.is_set_failed()); if (lastComparison != 0) { return lastComparison; if (is_set_failed()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.failed, typedOther.failed); if (lastComparison != 0) { lastComparison = Boolean.valueOf(is_set_process_ms_avg()).compareTo(typedOther.is_set_process_ms_avg()); if (lastComparison != 0) { return lastComparison; if (is_set_process_ms_avg()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.process_ms_avg, typedOther.process_ms_avg); if (lastComparison != 0) {
public BoltStats deepCopy() { return new BoltStats(this); }
lastComparison = Boolean.valueOf(is_set_acked()).compareTo(typedOther.is_set_acked()); if (lastComparison != 0) { return lastComparison; if (is_set_acked()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acked, typedOther.acked); if (lastComparison != 0) { lastComparison = Boolean.valueOf(is_set_failed()).compareTo(typedOther.is_set_failed()); if (lastComparison != 0) { return lastComparison; if (is_set_failed()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failed, typedOther.failed); if (lastComparison != 0) { lastComparison = Boolean.valueOf(is_set_process_ms_avg()).compareTo(typedOther.is_set_process_ms_avg()); if (lastComparison != 0) { return lastComparison; if (is_set_process_ms_avg()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.process_ms_avg, typedOther.process_ms_avg); if (lastComparison != 0) { lastComparison = Boolean.valueOf(is_set_executed()).compareTo(typedOther.is_set_executed()); if (lastComparison != 0) { return lastComparison; if (is_set_executed()) {