public void evictCache ( Path hdfsPath , Path localPath , long size ) throws IOException { boolean done = cacheFs . delete ( localPath , false ) ; if ( ! done ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Evict for path: " + hdfsPath + " local path " + localPath + " unsuccessful." ) ; } } }
Evicts a file from the cache . If the cache is exceeding capacity then the cache calls this method to indicate that it is evicting a file from the cache . This is part of the Eviction Interface .