Class SpaceManifestSnapshotManifestVerifier


  • public class SpaceManifestSnapshotManifestVerifier
    extends java.lang.Object
    This class verifies that the space manifest and the snapshot manifests match. It will ignore the .collection-snapshot.properties file on the space manifest side. Additionally, since the snapshot manifest is a stitched view of what should be in the space, the stitched, rather than the unstitched, view of the space is used for comparison.
    Author:
    Daniel Bernstien
    • Constructor Summary

      Constructors 
      Constructor Description
      SpaceManifestSnapshotManifestVerifier​(java.io.File md5Manifest, org.duracloud.manifeststitch.StitchedManifestGenerator generator, java.lang.String spaceId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getErrors()  
      java.lang.String getSpaceId()  
      boolean verify()
      Performs the verification.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpaceManifestSnapshotManifestVerifier

        public SpaceManifestSnapshotManifestVerifier​(java.io.File md5Manifest,
                                                     org.duracloud.manifeststitch.StitchedManifestGenerator generator,
                                                     java.lang.String spaceId)
    • Method Detail

      • getSpaceId

        public java.lang.String getSpaceId()
      • verify

        public boolean verify()
        Performs the verification.
        Returns:
        true if verification was a success. Otherwise false. Errors can be obtained by calling getErrors() after execution completes.
      • getErrors

        public java.util.List<java.lang.String> getErrors()