return data.getBuffer();
}
@Override
public Stats getStats() {
Stats stats = new Stats();
stats.setUptime((int) ((Clock.currentTimeMillis() - startTime) / MILLIS_TO_SECONDS));
stats.setCmdGet(getMisses.get() + getHits.get());
stats.setCmdSet(sets.get());
stats.setCmdTouch(touches.get());
stats.setGetHits(getHits.get());
stats.setGetMisses(getMisses.get());
stats.setDeleteHits(deleteHits.get());
stats.setDeleteMisses(deleteMisses.get());
stats.setIncrHits(incrementHits.get());
stats.setIncrMisses(incrementMisses.get());
stats.setDecrHits(decrementHits.get());
stats.setDecrMisses(decrementMisses.get());
stats.setCurrConnections(node.connectionManager.getCurrentClientConnections());
stats.setTotalConnections(node.connectionManager.getAllTextConnections());
return stats;
}