162163164165166167168169170171172
final GridTuple3<GridRestCommand, Boolean, Boolean> cmd ) { if (cmd.get1() == NOOP) { GridMemcachedMessage res0 = new GridMemcachedMessage(req); res0.status(SUCCESS); sendResponse(ses, res0); return null; }
199200201202203204205206207208209
GridMemcachedMessage res = new GridMemcachedMessage(req); if (restRes.getSuccessStatus() == GridRestResponse.STATUS_SUCCESS) { switch (cmd.get1()) { case CACHE_GET: { res.status(restRes.getResponse() == null ? KEY_NOT_FOUND : SUCCESS); break; } case CACHE_PUT:
213214215216217218219220221222223
case CACHE_CAS: case CACHE_APPEND: case CACHE_PREPEND: { boolean res0 = restRes.getResponse().equals(Boolean.TRUE); res.status(res0 ? SUCCESS : FAILURE); break; } default: {
219220221222223224225226227228229
break; } default: { res.status(SUCCESS); break; } } }
226227228229230231232233234235236
break; } } } else res.status(FAILURE); if (cmd.get3()) res.key(req.key()); if (restRes.getSuccessStatus() == GridRestResponse.STATUS_SUCCESS && res.addData() &&