CacheManager

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total2,471 of 2,4710%290 of 2900%1931935505504848
modifyCachePool(CachePoolInfo)2160%200%1111464611
saveState()1720%260%1414404011
listCacheDirectives(long, CacheDirectiveInfo, FSPermissionChecker)1630%320%1717414111
modifyDirective(CacheDirectiveInfo, FSPermissionChecker, EnumSet)1270%120%77303011
loadState(CacheManager.PersistState)1220%160%99252511
CacheManager(FSNamesystem, Configuration, BlockManager)1130%40%33252511
validateExpiryTime(CacheDirectiveInfo, long)1050%120%77212111
processCacheReport(DatanodeID, List)970%80%55191911
removeCachePool(String)920%80%55191911
computeNeeded(String, short)850%100%66272711
processCacheReportImpl(DatanodeDescriptor, List)810%80%55222211
addDirective(CacheDirectiveInfo, FSPermissionChecker, EnumSet)800%60%44181811
removeInternal(CacheDirective)750%100%66131311
addCachePool(CachePoolInfo)730%60%44141411
setCachedLocations(LocatedBlock)720%100%66181811
addCacheDirective(String, CacheDirective)660%80%559911
listCachePools(FSPermissionChecker, String)630%80%55111111
checkLimit(CachePool, String, short)600%40%339911
removeDirective(long, FSPermissionChecker)520%40%33101011
addInternal(CacheDirective, CachePool)480%40%33111111
createFromInfoAndDefaults(CacheDirectiveInfo, CacheDirective)410%80%55111111
getById(long)340%40%336611
addDirectiveFromEditLog(CacheDirectiveInfo)330%20%227711
modifyDirectiveFromEditLog(CacheDirectiveInfo)330%20%228811
startMonitorThread()320%40%339911
validatePath(CacheDirectiveInfo)320%40%336611
getNextDirectiveId()290%60%444411
clearDirectiveStats()270%60%445511
validateReplication(CacheDirectiveInfo, short)270%40%335511
stopMonitorThread()220%40%339911
getCachePool(String)220%20%224411
validatePoolName(CacheDirectiveInfo)200%40%336611
setCachedLocations(LocatedBlocks)200%40%335511
getCachePools()160%40%332211
getCacheDirectives()160%40%332211
getCachedBlocks()140%40%332211
clear()130%n/a115511
waitForRescanIfNeeded()130%20%225511
setNeedsRescan()130%20%225511
getCacheReplicationMonitor()110%n/a113311
static {...}110%20%222211
checkWritePermission(FSPermissionChecker, CachePool)70%20%223311
saveStateCompat(DataOutputStream, String)60%n/a112211
loadStateCompat(DataInput)50%n/a112211
isEnabled()30%n/a111111
isCheckLockTimeEnable()30%n/a111111
getMaxLockTimeMs()30%n/a111111
getSleepTimeMs()30%n/a111111