public void write(org.apache.storm.thrift.protocol.TProtocol oprot, ExecutorInfo struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TASK_START_FIELD_DESC); oprot.writeI32(struct.task_start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TASK_END_FIELD_DESC); oprot.writeI32(struct.task_end); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();
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(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, ExecutorInfo struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TASK_START_FIELD_DESC); oprot.writeI32(struct.task_start); oprot.writeFieldEnd(); oprot.writeFieldBegin(TASK_END_FIELD_DESC); oprot.writeI32(struct.task_end); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
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(); } }