public void onComplete(Void o) { shutdown_result result = new shutdown_result(); 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; shutdown_result result = new shutdown_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 shutdown_result deepCopy() { return new shutdown_result(this); }
public shutdown_result getResult(I iface, shutdown_args args) throws org.apache.thrift.TException { shutdown_result result = new shutdown_result(); try { iface.shutdown(); } catch (CliThriftException cliException) { result.cliException = cliException; } return result; } }
public void recv_shutdown() throws CliThriftException, org.apache.thrift.TException { shutdown_result result = new shutdown_result(); receiveBase(result, "shutdown"); if (result.cliException != null) { throw result.cliException; } return; }