org.jets3t.service.utils
Class FileComparerResults
java.lang.Object
org.jets3t.service.utils.FileComparerResults
public class FileComparerResults
- extends java.lang.Object
A simple container class to store the results generated by
FileComparer.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
Constructor Summary |
FileComparerResults()
|
FileComparerResults(java.util.List<java.lang.String> onlyOnServerKeys,
java.util.List<java.lang.String> updatedOnServerKeys,
java.util.List<java.lang.String> updatedOnClientKeys,
java.util.List<java.lang.String> onlyOnClientKeys,
java.util.List<java.lang.String> alreadySynchronisedKeys,
java.util.List<java.lang.String> alreadySynchronisedLocalPaths)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
onlyOnServerKeys
public java.util.List<java.lang.String> onlyOnServerKeys
updatedOnServerKeys
public java.util.List<java.lang.String> updatedOnServerKeys
updatedOnClientKeys
public java.util.List<java.lang.String> updatedOnClientKeys
onlyOnClientKeys
public java.util.List<java.lang.String> onlyOnClientKeys
alreadySynchronisedKeys
public java.util.List<java.lang.String> alreadySynchronisedKeys
alreadySynchronisedLocalPaths
public java.util.List<java.lang.String> alreadySynchronisedLocalPaths
FileComparerResults
public FileComparerResults(java.util.List<java.lang.String> onlyOnServerKeys,
java.util.List<java.lang.String> updatedOnServerKeys,
java.util.List<java.lang.String> updatedOnClientKeys,
java.util.List<java.lang.String> onlyOnClientKeys,
java.util.List<java.lang.String> alreadySynchronisedKeys,
java.util.List<java.lang.String> alreadySynchronisedLocalPaths)
FileComparerResults
public FileComparerResults()
merge
public void merge(FileComparerResults resultsToAdd)
getCountOfItemsCompared
public long getCountOfItemsCompared()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object