public void onComplete(String o) { execute_result result = new execute_result(); result.success = o; 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 onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; execute_result result = new execute_result(); if (e instanceof DRPCExecutionException) { result.e = (DRPCExecutionException) e; result.set_e_isSet(true); msg = result; } else if (e instanceof AuthorizationException) { result.aze = (AuthorizationException) e; result.set_aze_isSet(true); msg = result; } else { 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 void onComplete(String o) { execute_result result = new execute_result(); result.success = o; 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 onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; execute_result result = new execute_result(); if (e instanceof DRPCExecutionException) { result.e = (DRPCExecutionException) e; result.set_e_isSet(true); msg = result; } else if (e instanceof AuthorizationException) { result.aze = (AuthorizationException) e; result.set_aze_isSet(true); msg = result; } else { 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 String recv_execute() throws DRPCExecutionException, AuthorizationException, org.apache.thrift.TException { execute_result result = new execute_result(); receiveBase(result, "execute"); if (result.is_set_success()) { return result.success; } if (result.e != null) { throw result.e; } if (result.aze != null) { throw result.aze; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "execute failed: unknown result"); }
public execute_result deepCopy() { return new execute_result(this); }
public execute_result deepCopy() { return new execute_result(this); }
protected execute_result getResult(I iface, execute_args args) throws org.apache.thrift.TException { execute_result result = new execute_result(); try { result.success = iface.execute(args.functionName, args.funcArgs); } catch (DRPCExecutionException e) { result.e = e; } return result; } }
public execute_result getResult(I iface, execute_args args) throws org.apache.thrift.TException { execute_result result = new execute_result(); try { result.success = iface.execute(args.functionName, args.funcArgs); } catch (DRPCExecutionException e) { result.e = e; } catch (AuthorizationException aze) { result.aze = aze; } return result; } }
public String recv_execute() throws DRPCExecutionException, org.apache.thrift.TException { execute_result result = new execute_result(); receiveBase(result, "execute"); if (result.is_set_success()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "execute failed: unknown result"); }
public execute_result deepCopy() { return new execute_result(this); }
public String recv_execute() throws DRPCExecutionException, org.apache.thrift7.TException { execute_result result = new execute_result(); receiveBase(result, "execute"); if (result.is_set_success()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift7.TApplicationException(org.apache.thrift7.TApplicationException.MISSING_RESULT, "execute failed: unknown result"); }
public String recv_execute() throws DRPCExecutionException, AuthorizationException, org.apache.thrift.TException { execute_result result = new execute_result(); receiveBase(result, "execute"); if (result.is_set_success()) { return result.success; } if (result.e != null) { throw result.e; } if (result.aze != null) { throw result.aze; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "execute failed: unknown result"); }
protected execute_result getResult(I iface, execute_args args) throws org.apache.thrift7.TException { execute_result result = new execute_result(); try { result.success = iface.execute(args.functionName, args.funcArgs); } catch (DRPCExecutionException e) { result.e = e; } return result; } }
public execute_result deepCopy() { return new execute_result(this); }
public execute_result getResult(I iface, execute_args args) throws org.apache.thrift.TException { execute_result result = new execute_result(); try { result.success = iface.execute(args.functionName, args.funcArgs); } catch (DRPCExecutionException e) { result.e = e; } catch (AuthorizationException aze) { result.aze = aze; } return result; } }