Package org.tarantool.core.cmd

Examples of org.tarantool.core.cmd.Call


    }
    throw new TarantoolException(2, String.format("Illegal parameters, %s", "Unknown operation " + op));
  }

  private Response executeCall(Request request) {
    Call call = (Call) request;
    CallStub callStub = calls.get(call.getProcName());
    if (callStub == null) {
      throw new TarantoolException(50, String.format("Procedure '%s' is not defined", call.getProcName()));
    }
    Tuple args = Tuple.create(ByteBuffer.wrap(call.getBody()).order(ByteOrder.LITTLE_ENDIAN), ByteOrder.LITTLE_ENDIAN);
    return packResult(request, callStub.call(this, call.getProcName(), call.getFlags(), args), Call.OP_CODE);
  }
View Full Code Here


  /** {@inheritDoc} */
  @Override
  public List<Tuple> call(int flags, String procName, Tuple args) {
    try {
      Response response = transport.execute(new Call(id.incrementAndGet(), procName, args).flags(flags));
      return response.readTuples();
    } finally {
      returnConnection();
    }
  }
View Full Code Here

TOP

Related Classes of org.tarantool.core.cmd.Call

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.