printProgressLine("Listing files in local file system"); Map<String, String> objectKeyToFilepathMap = null; if ("UP".equals(actionCommand)) {
printProgressLine("Listing files in local file system"); Map<String, String> objectKeyToFilepathMap = null; if ("UP".equals(actionCommand)) {
private void displayProgressStatus(String prefix, ThreadWatcher watcher) { String progressMessage = prefix + watcher.getCompletedThreads() + "/" + watcher.getThreadCount(); // Show percentage of bytes transferred, if this info is available. if (watcher.isBytesTransferredInfoAvailable()) { String bytesTotalStr = byteFormatter.formatByteSize(watcher.getBytesTotal()); long percentage = (int) (((double)watcher.getBytesTransferred() / watcher.getBytesTotal()) * 100); String detailsText = formatTransferDetails(watcher); progressMessage += " - " + percentage + "% of " + bytesTotalStr + (detailsText.length() > 0 ? " (" + detailsText + ")" : ""); } else { long percentage = (int) (((double)watcher.getCompletedThreads() / watcher.getThreadCount()) * 100); progressMessage += " - " + percentage + "%"; } printProgressLine(progressMessage); }
private void displayProgressStatus(String prefix, ThreadWatcher watcher) { String progressMessage = prefix + watcher.getCompletedThreads() + "/" + watcher.getThreadCount(); // Show percentage of bytes transferred, if this info is available. if (watcher.isBytesTransferredInfoAvailable()) { String bytesTotalStr = byteFormatter.formatByteSize(watcher.getBytesTotal()); long percentage = (int) (((double)watcher.getBytesTransferred() / watcher.getBytesTotal()) * 100); String detailsText = formatTransferDetails(watcher); progressMessage += " - " + percentage + "% of " + bytesTotalStr + (detailsText.length() > 0 ? " (" + detailsText + ")" : ""); } else { long percentage = (int) (((double)watcher.getCompletedThreads() / watcher.getThreadCount()) * 100); progressMessage += " - " + percentage + "%"; } printProgressLine(progressMessage); }
printProgressLine("Listing objects in service" + (isBatchMode && mergedDiscrepancyResults.getCountOfItemsCompared() > 0 ? " (Continuing in batches, objects listed previously: " printProgressLine("Comparing service contents with local system"); FileComparerResults discrepancyResults = fileComparer.buildDiscrepancyLists( objectKeyToFilepathMap, objectsMap, md5GenerationProgressWatcher, isForce);
printProgressLine("Listing objects in service" + (isBatchMode && mergedDiscrepancyResults.getCountOfItemsCompared() > 0 ? " (Continuing in batches, objects listed previously: " printProgressLine("Comparing service contents with local system"); FileComparerResults discrepancyResults = fileComparer.buildDiscrepancyLists( objectKeyToFilepathMap, objectsMap, md5GenerationProgressWatcher, isForce);