@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_executor_info()) ? 131071 : 524287); if (is_set_executor_info()) hashCode = hashCode * 8191 + executor_info.hashCode(); hashCode = hashCode * 8191 + ((is_set_component_id()) ? 131071 : 524287); if (is_set_component_id()) hashCode = hashCode * 8191 + component_id.hashCode(); hashCode = hashCode * 8191 + ((is_set_host()) ? 131071 : 524287); if (is_set_host()) hashCode = hashCode * 8191 + host.hashCode(); hashCode = hashCode * 8191 + port; hashCode = hashCode * 8191 + uptime_secs; hashCode = hashCode * 8191 + ((is_set_stats()) ? 131071 : 524287); if (is_set_stats()) hashCode = hashCode * 8191 + stats.hashCode(); return hashCode; }
/** 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 java.lang.IllegalArgumentException(); } switch (field) { case EXECUTOR_INFO: return is_set_executor_info(); case COMPONENT_ID: return is_set_component_id(); case HOST: return is_set_host(); case PORT: return is_set_port(); case UPTIME_SECS: return is_set_uptime_secs(); case STATS: return is_set_stats(); } throw new java.lang.IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(is_set_component_id()).compareTo(other.is_set_component_id()); if (lastComparison != 0) { return lastComparison; if (is_set_component_id()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.component_id, other.component_id); if (lastComparison != 0) {
boolean this_present_component_id = true && this.is_set_component_id(); boolean that_present_component_id = true && that.is_set_component_id(); if (this_present_component_id || that_present_component_id) { if (!(this_present_component_id && that_present_component_id))
/** * Performs a deep copy on <i>other</i>. */ public ExecutorSummary(ExecutorSummary other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_executor_info()) { this.executor_info = new ExecutorInfo(other.executor_info); } if (other.is_set_component_id()) { this.component_id = other.component_id; } if (other.is_set_host()) { this.host = other.host; } this.port = other.port; this.uptime_secs = other.uptime_secs; if (other.is_set_stats()) { this.stats = new ExecutorStats(other.stats); } }
public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_executor_info()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'executor_info' is unset! Struct:" + toString()); } if (!is_set_component_id()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'component_id' is unset! Struct:" + toString()); } if (!is_set_host()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'host' is unset! Struct:" + toString()); } if (!is_set_port()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'port' is unset! Struct:" + toString()); } if (!is_set_uptime_secs()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'uptime_secs' is unset! Struct:" + toString()); } // check for sub-struct validity if (executor_info != null) { executor_info.validate(); } if (stats != null) { stats.validate(); } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_executor_info = true && (is_set_executor_info()); list.add(present_executor_info); if (present_executor_info) list.add(executor_info); boolean present_component_id = true && (is_set_component_id()); list.add(present_component_id); if (present_component_id) list.add(component_id); boolean present_host = true && (is_set_host()); list.add(present_host); if (present_host) list.add(host); boolean present_port = true; list.add(present_port); if (present_port) list.add(port); boolean present_uptime_secs = true; list.add(present_uptime_secs); if (present_uptime_secs) list.add(uptime_secs); boolean present_stats = true && (is_set_stats()); list.add(present_stats); if (present_stats) list.add(stats); return list.hashCode(); }
/** 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 EXECUTOR_INFO: return is_set_executor_info(); case COMPONENT_ID: return is_set_component_id(); case HOST: return is_set_host(); case PORT: return is_set_port(); case UPTIME_SECS: return is_set_uptime_secs(); case STATS: return is_set_stats(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_component_id()).compareTo(other.is_set_component_id()); if (lastComparison != 0) { return lastComparison; if (is_set_component_id()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component_id, other.component_id); if (lastComparison != 0) {
boolean this_present_component_id = true && this.is_set_component_id(); boolean that_present_component_id = true && that.is_set_component_id(); if (this_present_component_id || that_present_component_id) { if (!(this_present_component_id && that_present_component_id))
/** * Performs a deep copy on <i>other</i>. */ public ExecutorSummary(ExecutorSummary other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_executor_info()) { this.executor_info = new ExecutorInfo(other.executor_info); } if (other.is_set_component_id()) { this.component_id = other.component_id; } if (other.is_set_host()) { this.host = other.host; } this.port = other.port; this.uptime_secs = other.uptime_secs; if (other.is_set_stats()) { this.stats = new ExecutorStats(other.stats); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_executor_info()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'executor_info' is unset! Struct:" + toString()); } if (!is_set_component_id()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'component_id' is unset! Struct:" + toString()); } if (!is_set_host()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'host' is unset! Struct:" + toString()); } if (!is_set_port()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'port' is unset! Struct:" + toString()); } if (!is_set_uptime_secs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptime_secs' is unset! Struct:" + toString()); } // check for sub-struct validity if (executor_info != null) { executor_info.validate(); } if (stats != null) { stats.validate(); } }