Package tachyon.worker.hierarchy

Examples of tachyon.worker.hierarchy.BlockInfo


        return null;
      } else {
        blockSize = dirCandidate.getBlockSize(blockId);
      }
      // Add info of the block to the list
      blockInfoList.add(new BlockInfo(dirCandidate, blockId, blockSize));
      dir2BlocksToEvict.put(dirCandidate, blockId);
      dir2LRUBlocks.remove(dirCandidate);
      long evictionSize;
      // Update eviction size for this StorageDir
      if (sizeToEvict.containsKey(dirCandidate)) {
View Full Code Here


      while (sizeToEvict + dirSelected.getAvailableBytes() < requestSize) {
        Pair<Long, Long> oldestAccess = getLRUBlock(dirSelected, blockIdSet, pinList);
        if (oldestAccess.getFirst() != -1) {
          long blockSize = dirSelected.getBlockSize(oldestAccess.getFirst());
          sizeToEvict += blockSize;
          blockInfoList.add(new BlockInfo(dirSelected, oldestAccess.getFirst(), blockSize));
          blockIdSet.add(oldestAccess.getFirst());
        } else {
          break;
        }
      }
View Full Code Here

TOP

Related Classes of tachyon.worker.hierarchy.BlockInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.