public void addBlock ( String tierAlias , long blockId , long blockSize , long blockLastAccessTimeMs ) { UIFileBlockInfo block = new UIFileBlockInfo ( blockId , blockSize , blockLastAccessTimeMs , tierAlias , mAlluxioConfiguration ) ; List < UIFileBlockInfo > blocksOnTier = mBlocksOnTier . get ( tierAlias ) ; if ( blocksOnTier == null ) { blocksOnTier = new ArrayList <> ( ) ; mBlocksOnTier . put ( tierAlias , blocksOnTier ) ; } blocksOnTier . add ( block ) ; Long sizeOnTier = mSizeOnTier . get ( tierAlias ) ; mSizeOnTier . put ( tierAlias , ( sizeOnTier == null ? 0L : sizeOnTier ) + blockSize ) ; }
Adds a block to the file information .