/** 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_port()).compareTo(other.is_set_port()); if (lastComparison != 0) { return lastComparison; if (is_set_port()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.port, other.port); if (lastComparison != 0) {
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(); } }
/** 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_port()).compareTo(other.is_set_port()); if (lastComparison != 0) { return lastComparison; if (is_set_port()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port); if (lastComparison != 0) {
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(); } }