Ejemplo n.º 1
0
 public BlockInfoUnderConstruction[] getLeaseRecoveryCommand(int maxTransfers) {
   List<BlockInfoUnderConstruction> blocks = recoverBlocks.poll(maxTransfers);
   if (blocks == null) return null;
   return blocks.toArray(new BlockInfoUnderConstruction[blocks.size()]);
 }
Ejemplo n.º 2
0
 public List<BlockTargetPair> getReplicationCommand(int maxTransfers) {
   return replicateBlocks.poll(maxTransfers);
 }