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; } }
/** * Performs a deep copy on <i>other</i>. */ public getMemoryUsage_result(getMemoryUsage_result other) { if (other.isSetSuccess()) { this.success = new MemoryUsage(other.success); } if (other.isSetCliException()) { this.cliException = new CliThriftException(other.cliException); } }
/** * Performs a deep copy on <i>other</i>. */ public executeCommand_result(executeCommand_result other) { if (other.isSetSuccess()) { this.success = new CommandResult(other.success); } if (other.isSetCliException()) { this.cliException = new CliThriftException(other.cliException); } }
private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) { processMap.put("serverName", new serverName()); processMap.put("shutdown", new shutdown()); processMap.put("getMemoryUsage", new getMemoryUsage()); processMap.put("executeCommand", new executeCommand()); return processMap; }
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { processMap.put("serverName", new serverName()); processMap.put("shutdown", new shutdown()); processMap.put("getMemoryUsage", new getMemoryUsage()); processMap.put("executeCommand", new executeCommand()); return processMap; }
/** * Performs a deep copy on <i>other</i>. */ public serverName_result(serverName_result other) { if (other.isSetSuccess()) { this.success = other.success; } if (other.isSetCliException()) { this.cliException = new CliThriftException(other.cliException); } }
public void send_getMemoryUsage(boolean forceGC) throws org.apache.thrift.TException { getMemoryUsage_args args = new getMemoryUsage_args(); args.setForceGC(forceGC); sendBase("getMemoryUsage", args); }
public void send_executeCommand(String commandLine) throws org.apache.thrift.TException { executeCommand_args args = new executeCommand_args(); args.setCommandLine(commandLine); sendBase("executeCommand", args); }
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; }
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 getMemoryUsage_result getResult(I iface, getMemoryUsage_args args) throws org.apache.thrift.TException { getMemoryUsage_result result = new getMemoryUsage_result(); try { result.success = iface.getMemoryUsage(args.forceGC); } catch (CliThriftException cliException) { result.cliException = cliException; } return result; } }
/** * Performs a deep copy on <i>other</i>. */ public shutdown_result(shutdown_result other) { if (other.isSetCliException()) { this.cliException = new CliThriftException(other.cliException); } }
public void send_serverName() throws org.apache.thrift.TException { serverName_args args = new serverName_args(); sendBase("serverName", args); }
public void send_shutdown() throws org.apache.thrift.TException { shutdown_args args = new shutdown_args(); sendBase("shutdown", args); }
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 boolean equals(shutdown_result that) { if (that == null) return false; boolean this_present_cliException = true && this.isSetCliException(); boolean that_present_cliException = true && that.isSetCliException(); if (this_present_cliException || that_present_cliException) { if (!(this_present_cliException && that_present_cliException)) return false; if (!this.cliException.equals(that.cliException)) return false; } return true; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case CLI_EXCEPTION: if (value == null) { unsetCliException(); } else { setCliException((CliThriftException)value); } break; } }
public void executeCommand(String commandLine, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); executeCommand_call method_call = new executeCommand_call(commandLine, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); }
public CliThriftException( int errorCode, String message) { this(); this.errorCode = errorCode; setErrorCodeIsSet(true); this.message = message; }
public MemoryUsage setMax(long max) { this.max = max; setMaxIsSet(true); return this; }