public Object getFieldValue(_Fields field) { switch (field) { case ACKED: return get_acked(); case FAILED: return get_failed(); case COMPLETE_MS_AVG: return get_complete_ms_avg(); } throw new IllegalStateException(); }
public SpoutStats deepCopy() { return new SpoutStats(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof SpoutStats) return this.equals((SpoutStats)that); return false; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case ACKED: if (value == null) { unset_acked(); } else { set_acked((Map<String,Map<String,Long>>)value); } break; case FAILED: if (value == null) { unset_failed(); } else { set_failed((Map<String,Map<String,Long>>)value); } break; case COMPLETE_MS_AVG: if (value == null) { unset_complete_ms_avg(); } else { set_complete_ms_avg((Map<String,Map<String,Double>>)value); } break; } }
/** 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 COMPLETE_MS_AVG: return is_set_complete_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_complete_ms_avg()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'complete_ms_avg' is unset! Struct:" + toString()); } }
if (field.type == SPOUT_FIELD_DESC.type) { SpoutStats spout; spout = new SpoutStats(); spout.read(iprot); return spout; } else {
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift7.protocol.TCompactProtocol(new org.apache.thrift7.transport.TIOStreamTransport(in))); } catch (org.apache.thrift7.TException te) { throw new java.io.IOException(te); } }
public boolean equals(SpoutStats 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_complete_ms_avg = true && this.is_set_complete_ms_avg(); boolean that_present_complete_ms_avg = true && that.is_set_complete_ms_avg(); if (this_present_complete_ms_avg || that_present_complete_ms_avg) { if (!(this_present_complete_ms_avg && that_present_complete_ms_avg)) return false; if (!this.complete_ms_avg.equals(that.complete_ms_avg)) return false; } return true; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case ACKED: if (value == null) { unset_acked(); } else { set_acked((Map<String,Map<String,Long>>)value); } break; case FAILED: if (value == null) { unset_failed(); } else { set_failed((Map<String,Map<String,Long>>)value); } break; case COMPLETE_MS_AVG: if (value == null) { unset_complete_ms_avg(); } else { set_complete_ms_avg((Map<String,Map<String,Double>>)value); } break; } }
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_complete_ms_avg()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'complete_ms_avg' is unset! Struct:" + toString()); } }
if (field.type == SPOUT_FIELD_DESC.type) { SpoutStats spout; spout = new SpoutStats(); spout.read(iprot); return spout; } else {
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public Object getFieldValue(_Fields field) { switch (field) { case ACKED: return get_acked(); case FAILED: return get_failed(); case COMPLETE_MS_AVG: return get_complete_ms_avg(); } throw new IllegalStateException(); }
@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_complete_ms_avg = true && (is_set_complete_ms_avg()); builder.append(present_complete_ms_avg); if (present_complete_ms_avg) builder.append(complete_ms_avg); return builder.toHashCode(); }
public TaskSpecificStats getThirftstats() { return TaskSpecificStats.spout(new SpoutStats(get_acked(), get_fail(), get_complete_latencies())); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof SpoutStats) return this.equals((SpoutStats)that); return false; }
if ("spout".equals(exec.get_component_id())) { SpoutStats stats = exec.get_stats().get_specific().get_spout(); Map<String, Long> failedMap = stats.get_failed().get(":all-time"); Map<String, Long> ackedMap = stats.get_acked().get(":all-time"); Map<String, Double> avgLatMap = stats.get_complete_ms_avg().get(":all-time"); for (String key : ackedMap.keySet()) { if (failedMap != null) {
SpoutStats typedOther = (SpoutStats)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_complete_ms_avg()).compareTo(typedOther.is_set_complete_ms_avg()); if (lastComparison != 0) { return lastComparison; if (is_set_complete_ms_avg()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.complete_ms_avg, typedOther.complete_ms_avg); if (lastComparison != 0) {
public SpoutStats deepCopy() { return new SpoutStats(this); }