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