public boolean isBlacklisted ( String nodeName , ResourceType type ) { List < ResourceType > blacklistedResourceTypes = blacklistedNodes . get ( nodeName ) ; if ( blacklistedResourceTypes != null ) { synchronized ( blacklistedResourceTypes ) { return blacklistedResourceTypes . contains ( type ) ; } } else { return false ; } }
Check if a resource on a node is blacklisted .