synchronized void addBlock ( Block block ) { if ( ! isInitialized ( ) ) { return ; } BlockScanInfo info = blockMap . get ( block ) ; if ( info != null ) { LOG . warn ( "Adding an already existing block " + block ) ; delBlockInfo ( info ) ; } info = new BlockScanInfo ( block ) ; info . lastScanTime = getNewBlockScanTime ( ) ; addBlockInfo ( info ) ; adjustThrottler ( ) ; }
Adds block to list of blocks