lastComparison = Boolean.valueOf(is_set_numWorkers()).compareTo(other.is_set_numWorkers()); if (lastComparison != 0) { return lastComparison; if (is_set_numWorkers()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numWorkers, other.numWorkers); if (lastComparison != 0) {
/** 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 HOST: return is_set_host(); case SUPERVISOR_ID: return is_set_supervisorId(); case UPTIME_SECS: return is_set_uptimeSecs(); case NUM_WORKERS: return is_set_numWorkers(); case NUM_USED_WORKERS: return is_set_numUsedWorkers(); case VERSION: return is_set_version(); case BUILD_TS: return is_set_buildTs(); case PORT: return is_set_port(); case ERROR_MESSAGE: return is_set_errorMessage(); } throw new IllegalStateException(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_host()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'host' is unset! Struct:" + toString()); } if (!is_set_supervisorId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'supervisorId' is unset! Struct:" + toString()); } if (!is_set_uptimeSecs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptimeSecs' is unset! Struct:" + toString()); } if (!is_set_numWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numWorkers' is unset! Struct:" + toString()); } if (!is_set_numUsedWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numUsedWorkers' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** 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 HOST: return is_set_host(); case SUPERVISOR_ID: return is_set_supervisorId(); case UPTIME_SECS: return is_set_uptimeSecs(); case NUM_WORKERS: return is_set_numWorkers(); case NUM_USED_WORKERS: return is_set_numUsedWorkers(); case VERSION: return is_set_version(); case BUILD_TS: return is_set_buildTs(); case PORT: return is_set_port(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_numWorkers()).compareTo(other.is_set_numWorkers()); if (lastComparison != 0) { return lastComparison; if (is_set_numWorkers()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numWorkers, other.numWorkers); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_host()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'host' is unset! Struct:" + toString()); } if (!is_set_supervisorId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'supervisorId' is unset! Struct:" + toString()); } if (!is_set_uptimeSecs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptimeSecs' is unset! Struct:" + toString()); } if (!is_set_numWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numWorkers' is unset! Struct:" + toString()); } if (!is_set_numUsedWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numUsedWorkers' is unset! Struct:" + toString()); } // check for sub-struct validity }