@Override public void clientCallback(ClientResponse response) throws Exception { // Track the result of the operation (Success, Failure, Payload traffic...) if (response.getStatus() == ClientResponse.SUCCESS) { final VoltTable pairData = response.getResults()[0]; // Cache miss (Key does not exist) if (pairData.getRowCount() == 0) { missedGets.incrementAndGet(); } else { final PayloadProcessor.Pair pair = processor.retrieveFromStore( pairData.fetchRow(0).getString(0), pairData.fetchRow(0).getVarbinary(1)); successfulGets.incrementAndGet(); if (rand < config.multisingleratio) successfulGetsMPT.incrementAndGet(); else successfulGetsMPF.incrementAndGet(); networkGetData.addAndGet(pair.getStoreValueLength()); rawGetData.addAndGet(pair.getRawValueLength()); } } else { failedGets.incrementAndGet(); } }
PutCallback(PayloadProcessor.Pair pair, double rand) { storeValueLength = pair.getStoreValueLength(); rawValueLength = pair.getRawValueLength(); thisPair = pair; this.rand = rand; }