public void onComplete(String o) { serverName_result result = new serverName_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; serverName_result result = new serverName_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 serverName_result deepCopy() { return new serverName_result(this); }
public String recv_serverName() throws CliThriftException, org.apache.thrift.TException { serverName_result result = new serverName_result(); receiveBase(result, "serverName"); 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, "serverName failed: unknown result"); }
public serverName_result getResult(I iface, serverName_args args) throws org.apache.thrift.TException { serverName_result result = new serverName_result(); try { result.success = iface.serverName(); } catch (CliThriftException cliException) { result.cliException = cliException; } return result; } }