}
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);
}