private void addCorruptReplicaToDB(CorruptReplica cr) throws StorageException, TransactionContextException { EntityManager.add(cr); }
private void removeCorruptReplicaFromDB(CorruptReplica cr) throws StorageException, TransactionContextException { EntityManager.remove(cr); }
private Collection<CorruptReplica> getCorruptReplicas(BlockInfo blk) throws StorageException, TransactionContextException { return EntityManager.findList( CorruptReplica.Finder.ByBlockIdAndINodeId, blk.getBlockId(), blk.getInodeId()); }