CacheManager

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total2,248 of 2,2480%290 of 2900%1931935505504848
modifyCachePool(CachePoolInfo)1760%200%1111464611
saveState()1720%260%1414404011
listCacheDirectives(long, CacheDirectiveInfo, FSPermissionChecker)1570%320%1717414111
loadState(CacheManager.PersistState)1220%160%99252511
modifyDirective(CacheDirectiveInfo, FSPermissionChecker, EnumSet)1190%120%77303011
CacheManager(FSNamesystem, Configuration, BlockManager)1120%40%33252511
processCacheReport(DatanodeID, List)910%80%55191911
computeNeeded(String, short)850%100%66272711
processCacheReportImpl(DatanodeDescriptor, List)810%80%55222211
validateExpiryTime(CacheDirectiveInfo, long)800%120%77212111
addDirective(CacheDirectiveInfo, FSPermissionChecker, EnumSet)720%60%44181811
setCachedLocations(LocatedBlock)720%100%66181811
removeCachePool(String)700%80%55191911
removeInternal(CacheDirective)660%100%66131311
listCachePools(FSPermissionChecker, String)630%80%55111111
addCachePool(CachePoolInfo)570%60%44141411
addCacheDirective(String, CacheDirective)500%80%559911
addInternal(CacheDirective, CachePool)480%40%33111111
createFromInfoAndDefaults(CacheDirectiveInfo, CacheDirective)410%80%55111111
checkLimit(CachePool, String, short)400%40%339911
removeDirective(long, FSPermissionChecker)360%40%33101011
addDirectiveFromEditLog(CacheDirectiveInfo)330%20%227711
modifyDirectiveFromEditLog(CacheDirectiveInfo)330%20%228811
startMonitorThread()320%40%339911
getNextDirectiveId()290%60%444411
clearDirectiveStats()270%60%445511
getById(long)260%40%336611
validatePath(CacheDirectiveInfo)240%40%336611
stopMonitorThread()220%40%339911
validatePoolName(CacheDirectiveInfo)200%40%336611
setCachedLocations(LocatedBlocks)200%40%335511
validateReplication(CacheDirectiveInfo, short)190%40%335511
getCachePools()160%40%332211
getCacheDirectives()160%40%332211
getCachePool(String)160%20%224411
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