Package org.jets3t.service.utils
Class FileComparerResults
- java.lang.Object
-
- org.jets3t.service.utils.FileComparerResults
-
public class FileComparerResults extends Object
A simple container class to store the results generated byFileComparer.buildDiscrepancyLists(Map, Map)
.The following key lists are available:
- onlyOnServerKeys: objects with these keys exist only in S3, not on the local computer
- updatedOnServerKeys: objects with these keys exist in S3 and on the local computer, but the contents of the objects are different and the S3 version is newer than the local one.
- onlyOnClientKeys: objects with these keys exist only on the local computer, not in S3
- updatedOnClientKeys: objects with these keys exist in S3 and on the local computer, but the contents of the objects are different and the local version is newer than the S3 one.
- alreadySynchronisedKeys: identical objects with these keys exist in S3 and on the local computer
- Author:
- James Murty
-
-
Field Summary
Fields Modifier and Type Field Description List<String>
alreadySynchronisedKeys
List<String>
alreadySynchronisedLocalPaths
List<String>
onlyOnClientKeys
List<String>
onlyOnServerKeys
List<String>
updatedOnClientKeys
List<String>
updatedOnServerKeys
-
Constructor Summary
Constructors Constructor Description FileComparerResults()
FileComparerResults(List<String> onlyOnServerKeys, List<String> updatedOnServerKeys, List<String> updatedOnClientKeys, List<String> onlyOnClientKeys, List<String> alreadySynchronisedKeys, List<String> alreadySynchronisedLocalPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCountOfItemsCompared()
void
merge(FileComparerResults resultsToAdd)
String
toString()
-
-
-
Constructor Detail
-
FileComparerResults
public FileComparerResults(List<String> onlyOnServerKeys, List<String> updatedOnServerKeys, List<String> updatedOnClientKeys, List<String> onlyOnClientKeys, List<String> alreadySynchronisedKeys, List<String> alreadySynchronisedLocalPaths)
-
FileComparerResults
public FileComparerResults()
-
-
Method Detail
-
merge
public void merge(FileComparerResults resultsToAdd)
-
getCountOfItemsCompared
public long getCountOfItemsCompared()
-
-