public void read(org.apache.thrift.protocol.TProtocol iprot, gettimestamp_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, gettimestamp_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); } } }
public void onComplete(Long o) { gettimestamp_result result = new gettimestamp_result(); result.success = o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) {
@Override public void clear() { setSuccessIsSet(false); this.success = 0; }
public gettimestamp_result setSuccess(long success) { this.success = success; setSuccessIsSet(true); return this; }
public gettimestamp_result( long success) { this(); this.success = success; setSuccessIsSet(true); }
public gettimestamp_result getResult(I iface, gettimestamp_args args) throws org.apache.thrift.TException { gettimestamp_result result = new gettimestamp_result(); result.success = iface.gettimestamp(args.mytimestamp); result.setSuccessIsSet(true); return result; } }