6162636465666768
public void bulkImport(Simulation sim) { Iterator<ReadRequest> i = requests.iterator(); while (i.hasNext()) { ReadRequest r = i.next(); sim.simDriver.schedule(new NFSReadEvent(sim, r.time, "unknown_client", r.fileHandle, r.offset, r.nbytes)); } }
697071727374757677787980
} @Override public void blockReady(long eventID, long diskBlock) { assert requests.containsKey(eventID); NFSReadEvent e = requests.get(eventID); BlockInfo b = lruCache.lookup(e.getFileHandle(), e.getFileBlock()); lruCache.markReady(b); if (!b.isPrefetch) { // DEMAND FETCH stats.addMiss(sim.simDriver.getCurrentTime()-b.accessTime); }