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