private void store(CHKBlock block, boolean deep, boolean canWriteClientCache, boolean canWriteDatastore, boolean forULPR) { try { double loc = block.getKey().toNormalizedDouble(); if (canWriteClientCache) { chkClientcache.put(block, false);
public CHKBlock fetch(NodeCHK key, boolean dontPromote, boolean canReadClientCache, boolean canWriteClientCache, boolean canWriteDatastore, boolean forULPR, BlockMetadata meta) { double loc=key.toNormalizedDouble(); double dist=Location.distance(lm.getLocation(), loc); if(canReadClientCache) {
rejectedOverload = true; long rtt = System.currentTimeMillis() - startTime; double targetLocation=key.getNodeCHK().toNormalizedDouble(); node.nodeStats.reportCHKOutcome(rtt, false, targetLocation, realTimeFlag); (status == RequestSender.GET_OFFER_VERIFY_FAILURE))) { long rtt = System.currentTimeMillis() - startTime; double targetLocation=key.getNodeCHK().toNormalizedDouble(); if(!rejectedOverload) requestStarters.requestCompleted(false, false, key.getNodeKey(true), realTimeFlag);