public void getResult() throws org.apache.thrift7.TException { if (getState() != org.apache.thrift7.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift7.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift7.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift7.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_failRequest(); } }
public void failRequest(String id) throws TException { DistributedRPCInvocations.Client c = client.get(); try { if (c == null) { throw new TException("Client is not connected..."); } c.failRequest(id); } catch (AuthorizationException aze) { throw aze; } catch (TException e) { client.compareAndSet(c, null); throw e; } }
public DRPCRequest fetchRequest(String func) throws TException { DistributedRPCInvocations.Client c = client.get(); try { if (c == null) { throw new TException("Client is not connected..."); } return c.fetchRequest(func); } catch (AuthorizationException aze) { throw aze; } catch (TException e) { client.compareAndSet(c, null); throw e; } }
public void failRequest(String id) throws TException { DistributedRPCInvocations.Client c = client.get(); try { if (c == null) { throw new TException("Client is not connected..."); } c.failRequest(id); } catch (AuthorizationException aze) { throw aze; } catch (TException e) { client.compareAndSet(c, null); throw e; } }
public DRPCRequest fetchRequest(String func) throws TException, AuthorizationException { DistributedRPCInvocations.Client c = client.get(); try { if (c == null) { throw new TException("Client is not connected..."); } return c.fetchRequest(func); } catch (AuthorizationException aze) { throw aze; } catch (TException e) { client.compareAndSet(c, null); throw e; } }
public void result(String id, String result) throws TException, AuthorizationException { DistributedRPCInvocations.Client c = client.get(); try { if (c == null) { throw new TException("Client is not connected..."); } c.result(id, result); } catch (AuthorizationException aze) { throw aze; } catch (TException e) { client.compareAndSet(c, null); throw e; } }
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 Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { return new Client(iprot, oprot); } }
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 result(String id, String result) throws TException { try { if(client==null) connect(); client.result(id, result); } catch(TException e) { client = null; throw e; } }
public void send_failRequest(String id) throws org.apache.thrift.TException { failRequest_args args = new failRequest_args(); args.set_id(id); sendBase("failRequest", args); }
public void recv_result() throws AuthorizationException, org.apache.thrift.TException { result_result result = new result_result(); receiveBase(result, "result"); if (result.aze != null) { throw result.aze; } return; }
public void recv_failRequest() throws org.apache.thrift.TException { failRequest_result result = new failRequest_result(); receiveBase(result, "failRequest"); return; }
public DRPCRequest recv_fetchRequest() throws org.apache.thrift.TException { fetchRequest_result result = new fetchRequest_result(); receiveBase(result, "fetchRequest"); if (result.is_set_success()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchRequest failed: unknown result"); }
public void recv_result() throws org.apache.thrift.TException { result_result result = new result_result(); receiveBase(result, "result"); return; }
public void reconnectClient() throws TException { if (client.get() == null) { reconnect(); client.set(new DistributedRPCInvocations.Client(_protocol)); } }
public DRPCRequest fetchRequest(String functionName) throws AuthorizationException, org.apache.thrift.TException { send_fetchRequest(functionName); return recv_fetchRequest(); }
public void result(String id, String result) throws org.apache.thrift.TException { send_result(id, result); recv_result(); }
public void getResult() throws AuthorizationException, 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_failRequest(); } }
public void getResult() throws 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_failRequest(); } }