public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; rename_sentry_privilege_result result = new rename_sentry_privilege_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 void onComplete(TRenamePrivilegesResponse o) { rename_sentry_privilege_result result = new rename_sentry_privilege_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 rename_sentry_privilege_result deepCopy() { return new rename_sentry_privilege_result(this); }
public TRenamePrivilegesResponse recv_rename_sentry_privilege() throws org.apache.thrift.TException { rename_sentry_privilege_result result = new rename_sentry_privilege_result(); receiveBase(result, "rename_sentry_privilege"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "rename_sentry_privilege failed: unknown result"); }
public rename_sentry_privilege_result getResult(I iface, rename_sentry_privilege_args args) throws org.apache.thrift.TException { rename_sentry_privilege_result result = new rename_sentry_privilege_result(); result.success = iface.rename_sentry_privilege(args.request); return result; } }