예제 #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()]);
 }
예제 #2
0
 public List<BlockTargetPair> getReplicationCommand(int maxTransfers) {
   return replicateBlocks.poll(maxTransfers);
 }