public ErrorInfo deepCopy() { return new ErrorInfo(this); }
public ErrorInfo deepCopy() { return new ErrorInfo(this); }
/** * Performs a deep copy on <i>other</i>. */ public TaskSummary(TaskSummary other) { __isset_bitfield = other.__isset_bitfield; this.taskId = other.taskId; this.uptime = other.uptime; if (other.is_set_status()) { this.status = other.status; } if (other.is_set_host()) { this.host = other.host; } this.port = other.port; if (other.is_set_errors()) { List<ErrorInfo> __this__errors = new ArrayList<ErrorInfo>(other.errors.size()); for (ErrorInfo other_element : other.errors) { __this__errors.add(new ErrorInfo(other_element)); } this.errors = __this__errors; } }
/** * Performs a deep copy on <i>other</i>. */ public ComponentSummary(ComponentSummary other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_name()) { this.name = other.name; } this.parallel = other.parallel; if (other.is_set_type()) { this.type = other.type; } if (other.is_set_taskIds()) { List<Integer> __this__taskIds = new ArrayList<Integer>(other.taskIds); this.taskIds = __this__taskIds; } if (other.is_set_errors()) { List<ErrorInfo> __this__errors = new ArrayList<ErrorInfo>(other.errors.size()); for (ErrorInfo other_element : other.errors) { __this__errors.add(new ErrorInfo(other_element)); } this.errors = __this__errors; } }
/** * Performs a deep copy on <i>other</i>. */ public TaskSummary(TaskSummary other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.task_id = other.task_id; 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_errors()) { List<ErrorInfo> __this__errors = new ArrayList<ErrorInfo>(); for (ErrorInfo other_element : other.errors) { __this__errors.add(new ErrorInfo(other_element)); } this.errors = __this__errors; } if (other.is_set_stats()) { this.stats = new TaskStats(other.stats); } }
for (int _i172 = 0; _i172 < _list170.size; ++_i172) _elem171 = new ErrorInfo(); _elem171.read(iprot); struct.errors.add(_elem171);
for (int _i159 = 0; _i159 < _list157.size; ++_i159) _elem158 = new ErrorInfo(); _elem158.read(iprot); struct.errors.add(_elem158);
for (int _i169 = 0; _i169 < _list167.size; ++_i169) _elem168 = new ErrorInfo(); _elem168.read(iprot); struct.errors.add(_elem168);
for (int i = 0; i < size; i++) { TaskError e = (TaskError) errors.get(i); newErrors.add(new ErrorInfo(e.getError(), e.getTimSecs()));
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TaskSummary struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.taskId = iprot.readI32(); struct.set_taskId_isSet(true); struct.uptime = iprot.readI32(); struct.set_uptime_isSet(true); struct.status = iprot.readString(); struct.set_status_isSet(true); struct.host = iprot.readString(); struct.set_host_isSet(true); struct.port = iprot.readI32(); struct.set_port_isSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.errors = new ArrayList<ErrorInfo>(_list175.size); ErrorInfo _elem176; for (int _i177 = 0; _i177 < _list175.size; ++_i177) { _elem176 = new ErrorInfo(); _elem176.read(iprot); struct.errors.add(_elem176); } } struct.set_errors_isSet(true); } } }
if (taskErrorList != null && taskErrorList.size() != 0) { for (TaskError taskError : taskErrorList) { ErrorInfo errorInfo = new ErrorInfo(taskError.getError(), taskError.getTimSecs(), taskError.getLevel(), taskError.getCode()); taskSummary.add_to_errors(errorInfo);
_elem127 = new ErrorInfo(); _elem127.read(iprot); this.errors.add(_elem127);
public ErrorInfo deepCopy() { return new ErrorInfo(this); }
public ErrorInfo deepCopy() { return new ErrorInfo(this); }
/** * Performs a deep copy on <i>other</i>. */ public TaskSummary(TaskSummary other) { __isset_bitfield = other.__isset_bitfield; this.taskId = other.taskId; this.uptime = other.uptime; if (other.is_set_status()) { this.status = other.status; } if (other.is_set_host()) { this.host = other.host; } this.port = other.port; if (other.is_set_errors()) { List<ErrorInfo> __this__errors = new ArrayList<ErrorInfo>(other.errors.size()); for (ErrorInfo other_element : other.errors) { __this__errors.add(new ErrorInfo(other_element)); } this.errors = __this__errors; } }
/** * Performs a deep copy on <i>other</i>. */ public ComponentSummary(ComponentSummary other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_name()) { this.name = other.name; } this.parallel = other.parallel; if (other.is_set_type()) { this.type = other.type; } if (other.is_set_taskIds()) { List<Integer> __this__taskIds = new ArrayList<Integer>(other.taskIds); this.taskIds = __this__taskIds; } if (other.is_set_errors()) { List<ErrorInfo> __this__errors = new ArrayList<ErrorInfo>(other.errors.size()); for (ErrorInfo other_element : other.errors) { __this__errors.add(new ErrorInfo(other_element)); } this.errors = __this__errors; } }
__this__errors_copy_value.add(new ErrorInfo(other_element_value_element));
for (int _i169 = 0; _i169 < _list167.size; ++_i169) _elem168 = new ErrorInfo(); _elem168.read(iprot); struct.errors.add(_elem168);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TaskSummary struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.taskId = iprot.readI32(); struct.set_taskId_isSet(true); struct.uptime = iprot.readI32(); struct.set_uptime_isSet(true); struct.status = iprot.readString(); struct.set_status_isSet(true); struct.host = iprot.readString(); struct.set_host_isSet(true); struct.port = iprot.readI32(); struct.set_port_isSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.errors = new ArrayList<ErrorInfo>(_list175.size); ErrorInfo _elem176; for (int _i177 = 0; _i177 < _list175.size; ++_i177) { _elem176 = new ErrorInfo(); _elem176.read(iprot); struct.errors.add(_elem176); } } struct.set_errors_isSet(true); } } }
for (int _i159 = 0; _i159 < _list157.size; ++_i159) _elem158 = new ErrorInfo(); _elem158.read(iprot); struct.errors.add(_elem158);