public MemoryUsage getResult() throws CliThriftException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getMemoryUsage(); } }
public CommandResult getResult() throws CliThriftException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_executeCommand(); } }
public String getResult() throws CliThriftException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_serverName(); } }
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"); }
public void send_executeCommand(String commandLine) throws org.apache.thrift.TException { executeCommand_args args = new executeCommand_args(); args.setCommandLine(commandLine); sendBase("executeCommand", args); }
public MemoryUsage recv_getMemoryUsage() throws CliThriftException, org.apache.thrift.TException { getMemoryUsage_result result = new getMemoryUsage_result(); receiveBase(result, "getMemoryUsage"); 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, "getMemoryUsage failed: unknown result"); }
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 shutdown() throws CliThriftException, org.apache.thrift.TException { send_shutdown(); recv_shutdown(); }
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { return new Client(iprot, oprot); } }
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 CommandResult executeCommand(String commandLine) throws CliThriftException, org.apache.thrift.TException { send_executeCommand(commandLine); return recv_executeCommand(); }
public MemoryUsage getMemoryUsage(boolean forceGC) throws CliThriftException, org.apache.thrift.TException { send_getMemoryUsage(forceGC); return recv_getMemoryUsage(); }
public String serverName() throws CliThriftException, org.apache.thrift.TException { send_serverName(); return recv_serverName(); }
public Client getClient(org.apache.thrift.protocol.TProtocol prot) { return new Client(prot); } public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
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 void send_shutdown() throws org.apache.thrift.TException { shutdown_args args = new shutdown_args(); sendBase("shutdown", args); }
public void send_serverName() throws org.apache.thrift.TException { serverName_args args = new serverName_args(); sendBase("serverName", args); }
public void getResult() throws CliThriftException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_shutdown(); } }