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