private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public void read(org.apache.thrift.protocol.TProtocol iprot, onServerProfileUpdate_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) { 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(); }
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; onServerProfileUpdate_result result = new onServerProfileUpdate_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } };
public onServerProfileUpdate_result deepCopy() { return new onServerProfileUpdate_result(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof onServerProfileUpdate_result) return this.equals((onServerProfileUpdate_result)that); return false; }
public void write(org.apache.thrift.protocol.TProtocol oprot, onServerProfileUpdate_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public onServerProfileUpdate_result getResult(I iface, onServerProfileUpdate_args args) throws org.apache.thrift.TException { onServerProfileUpdate_result result = new onServerProfileUpdate_result(); iface.onServerProfileUpdate(args.message); return result; } }
public void onComplete(Void o) { onServerProfileUpdate_result result = new onServerProfileUpdate_result(); 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) {
public void recv_onServerProfileUpdate() throws org.apache.thrift.TException { onServerProfileUpdate_result result = new onServerProfileUpdate_result(); receiveBase(result, "onServerProfileUpdate"); return; }