public void onComplete(CommandResult o) { executeCommand_result result = new executeCommand_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; executeCommand_result result = new executeCommand_result(); if (e instanceof CliThriftException) { result.cliException = (CliThriftException) e; result.setCliExceptionIsSet(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 executeCommand_result deepCopy() { return new executeCommand_result(this); }
public executeCommand_result getResult(I iface, executeCommand_args args) throws org.apache.thrift.TException { executeCommand_result result = new executeCommand_result(); try { result.success = iface.executeCommand(args.commandLine); } catch (CliThriftException cliException) { result.cliException = cliException; } return result; } }
public CommandResult recv_executeCommand() throws CliThriftException, org.apache.thrift.TException { executeCommand_result result = new executeCommand_result(); receiveBase(result, "executeCommand"); if (result.isSetSuccess()) { return result.success; } if (result.cliException != null) { throw result.cliException; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "executeCommand failed: unknown result"); }