private void logTransferProgress(TransferProgress transferProgress){
  if (LOGGER.isInfoEnabled() && transferProgress.getTotalBytesToTransfer() > 0) {
    NumberFormat formatter=new DecimalFormat("#0.0");
    LOGGER.info("progressBytesTransferred={} totalBytesToTransfer={} progressPercentTransferred={}",transferProgress.getBytesTransferred(),transferProgress.getTotalBytesToTransfer(),formatter.format(transferProgress.getPercentTransferred()));
  }
}

private void logTransferProgress ( TransferProgress transferProgress ) { if ( LOGGER . isInfoEnabled ( ) && transferProgress . getTotalBytesToTransfer ( ) > 0 ) { NumberFormat formatter = new DecimalFormat ( "#0.0" ) ; LOGGER . info ( "progressBytesTransferred={} totalBytesToTransfer={} progressPercentTransferred={}" , transferProgress . getBytesTransferred ( ) , transferProgress . getTotalBytesToTransfer ( ) , formatter . format ( transferProgress . getPercentTransferred ( ) ) ) ; } }
logs transfer progress for an s3 file transfer operation .
